{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# API功能调用"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "key_luo =\"4996cc7eec646bf7fe2d0855069cf43f\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理/逆地理编码"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_luo,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '河南省郑州市二七区郑州大学',\n",
       "   'country': '中国',\n",
       "   'province': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'city': '郑州市',\n",
       "   'district': '二七区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '410103',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.636423,34.745966',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "郑大 = geocode(address='河南省郑州市二七区郑州大学')\n",
    "郑大"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>河南省郑州市二七区郑州大学</td>\n",
       "      <td>中国</td>\n",
       "      <td>河南省</td>\n",
       "      <td>0371</td>\n",
       "      <td>郑州市</td>\n",
       "      <td>二七区</td>\n",
       "      <td>[]</td>\n",
       "      <td>410103</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.636423,34.745966</td>\n",
       "      <td>兴趣点</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province citycode city district township  adcode  \\\n",
       "0     河南省郑州市二七区郑州大学      中国      河南省     0371  郑州市      二七区       []  410103   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  113.636423,34.745966   兴趣点                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_郑大地理编码 = pd.json_normalize(郑大['geocodes'])\n",
    "df_郑大地理编码"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码(基础)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_luo,\n",
    "        'location':'113.636423,34.745966',\n",
    "        'poitype':141201,\n",
    "        'radius':1000,\n",
    "        'extensions':'base',\n",
    "        'batch': True,\n",
    "        'roadlevel': 0,\n",
    "        'homeorcorp': 0,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'regeocode': {'formatted_address': '河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)',\n",
       "  'addressComponent': {'country': '中国',\n",
       "   'province': '河南省',\n",
       "   'city': '郑州市',\n",
       "   'citycode': '0371',\n",
       "   'district': '二七区',\n",
       "   'adcode': '410103',\n",
       "   'township': '大学路街道',\n",
       "   'towncode': '410103007000',\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': '郑州大学出国留学培训中心', 'type': '科教文化服务;培训机构;培训机构'},\n",
       "   'streetNumber': {'street': '中原东路',\n",
       "    'number': '49号',\n",
       "    'location': '113.636252,34.7468006',\n",
       "    'direction': '北',\n",
       "    'distance': '94.0982'},\n",
       "   'businessAreas': [{'location': '113.640765,34.754888',\n",
       "     'name': '五里堡',\n",
       "     'id': '410103'},\n",
       "    {'location': '113.655638,34.724284', 'name': '京广路', 'id': '410103'},\n",
       "    {'location': '113.614828,34.754074', 'name': '建设路', 'id': '410102'}]}}}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "郑大逆地理编码 = regeocode(郑大)\n",
    "郑大逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>河南省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>郑州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>0371</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>二七区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>410103</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>大学路街道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>410103007000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>郑州大学出国留学培训中心</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>中原东路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>49号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>113.636252,34.7468006</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>北</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>94.0982</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[{'location': '113.640765,34.754888', 'name': ...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                                                   0\n",
       "status                                                                                             1\n",
       "info                                                                                              OK\n",
       "infocode                                                                                       10000\n",
       "regeocode.formatted_address                                      河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)\n",
       "regeocode.addressComponent.country                                                                中国\n",
       "regeocode.addressComponent.province                                                              河南省\n",
       "regeocode.addressComponent.city                                                                  郑州市\n",
       "regeocode.addressComponent.citycode                                                             0371\n",
       "regeocode.addressComponent.district                                                              二七区\n",
       "regeocode.addressComponent.adcode                                                             410103\n",
       "regeocode.addressComponent.township                                                            大学路街道\n",
       "regeocode.addressComponent.towncode                                                     410103007000\n",
       "regeocode.addressComponent.neighborhood.name                                                      []\n",
       "regeocode.addressComponent.neighborhood.type                                                      []\n",
       "regeocode.addressComponent.building.name                                                郑州大学出国留学培训中心\n",
       "regeocode.addressComponent.building.type                                            科教文化服务;培训机构;培训机构\n",
       "regeocode.addressComponent.streetNumber.street                                                  中原东路\n",
       "regeocode.addressComponent.streetNumber.number                                                   49号\n",
       "regeocode.addressComponent.streetNumber.location                               113.636252,34.7468006\n",
       "regeocode.addressComponent.streetNumber.direction                                                  北\n",
       "regeocode.addressComponent.streetNumber.distance                                             94.0982\n",
       "regeocode.addressComponent.businessAreas           [{'location': '113.640765,34.754888', 'name': ..."
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_郑大逆地理编码 = pd.json_normalize(郑大逆地理编码).T\n",
    "df_郑大逆地理编码"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码(all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "def regeocode(location,poitype=None,radius=None,extensions=\"all\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_luo,\n",
    "        'location':'113.636423,34.745966',\n",
    "        'poitype':141201,\n",
    "        'radius':1000,\n",
    "        'extensions':'all',\n",
    "        'batch': True,\n",
    "        'roadlevel':1,\n",
    "        'homeorcorp':1,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'regeocode': {'formatted_address': '河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)', 'addressComponent': {'country': '中国', 'province': '河南省', 'city': '郑州市', 'citycode': '0371', 'district': '二七区', 'adcode': '410103', 'township': '大学路街道', 'towncode': '410103007000', 'neighborhood': {'name': [], 'type': []}, 'building': {'name': '郑州大学出国留学培训中心', 'type': '科教文化服务;培训机构;培训机构'}, 'streetNumber': {'street': '中原东路', 'number': '49号', 'location': '113.636252,34.7468006', 'direction': '北', 'distance': '94.0982'}, 'businessAreas': [{'location': '113.640765,34.754888', 'name': '五里堡', 'id': '410103'}, {'location': '113.655638,34.724284', 'name': '京广路', 'id': '410103'}, {'location': '113.614828,34.754074', 'name': '建设路', 'id': '410102'}]}, 'pois': [{'id': 'B01731AJON', 'name': '郑州大学南校区网络管理中心', 'type': '科教文化服务;学校;高等院校|科教文化服务;科研机构;科研机构', 'tel': '0371-67763056', 'direction': '西北', 'distance': '61.592', 'location': '113.635862,34.746273', 'address': '郑州大学逸夫楼', 'poiweight': '0.0914', 'businessarea': '五里堡'}, {'id': 'B0FFFZA3QP', 'name': '郑州大学法律硕士教育中心', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-56792306', 'direction': '东南', 'distance': '18.9185', 'location': '113.636555,34.745835', 'address': '大学路街道郑州大学国际学院-语文知识杂志社附近', 'poiweight': '0.169167', 'businessarea': '五里堡'}, {'id': 'B0FFI1ER1V', 'name': '郑州大学书法学院', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-67766117', 'direction': '东北', 'distance': '6.58337', 'location': '113.636483,34.745999', 'address': '大学路75号(郑州大学老校区)', 'poiweight': '0.284884', 'businessarea': '五里堡'}, {'id': 'B0FFGH55OU', 'name': '郑州大学语言文学工作委员会', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东', 'distance': '42.4268', 'location': '113.636878,34.745890', 'address': '大学路街道郑州大学国际学院-语文知识杂志社附近', 'poiweight': '0.276304', 'businessarea': '五里堡'}, {'id': 'B0FFF37KG8', 'name': '郑州大学信息工程学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '南', 'distance': '415.785', 'location': '113.637102,34.742269', 'address': '大学路75号郑州大学南校区', 'poiweight': '0.17696', 'businessarea': '五里堡'}, {'id': 'B01730K9IL', 'name': '郑州大学-软件学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '南', 'distance': '426.423', 'location': '113.637125,34.742175', 'address': '大学路75号郑州大学南校区', 'poiweight': '0.540443', 'businessarea': '五里堡'}, {'id': 'B01730IADW', 'name': '郑州大学南校区', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-67763641', 'direction': '东南', 'distance': '486.911', 'location': '113.639403,34.742336', 'address': '大学北路75号', 'poiweight': '0.645774', 'businessarea': '五里堡'}, {'id': 'B0FFFOGIAC', 'name': '郑州大学音乐学院2号琴房楼', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '427.19', 'location': '113.640033,34.743525', 'address': '大学路75号', 'poiweight': '0.197281', 'businessarea': '五里堡'}, {'id': 'B01730KBZ4', 'name': '郑州大学南校区音乐学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '523.992', 'location': '113.639777,34.742144', 'address': '大学路75号郑州大学南校区', 'poiweight': '0.435148', 'businessarea': '五里堡'}, {'id': 'B0FFG23WFQ', 'name': '防空兵学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '北', 'distance': '565.657', 'location': '113.637288,34.751003', 'address': '建设东路南50米', 'poiweight': '0.169548', 'businessarea': '五里堡'}, {'id': 'B01731B0KM', 'name': '郑州大学-MPA教育中心', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '524.839', 'location': '113.638578,34.741591', 'address': '大学路街道大学路75号郑州大学21号楼', 'poiweight': '0.204922', 'businessarea': '五里堡'}, {'id': 'B01730KAX4', 'name': '郑州大学南校区国际教育学院', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-67767253', 'direction': '东南', 'distance': '591.024', 'location': '113.641527,34.742701', 'address': '大学路75号(郑州大学老校区)', 'poiweight': '0.393128', 'businessarea': '五里堡'}, {'id': 'B01731B0JQ', 'name': '郑州大学化学与分子工程学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '619.117', 'location': '113.642273,34.743157', 'address': '大学路75号郑州大学南校区', 'poiweight': '0.17696', 'businessarea': '五里堡'}, {'id': 'B01731B0RE', 'name': '郑州大学韩国语能力等级考试中心', 'type': '科教文化服务;学校;高等院校|生活服务;生活服务场所;生活服务场所', 'tel': [], 'direction': '东南', 'distance': '590.55', 'location': '113.641527,34.742708', 'address': '郑州大学国际教育学院', 'poiweight': '0.181607', 'businessarea': '五里堡'}, {'id': 'B0FFFX2QG9', 'name': '郑州大学培材韩国语教育中心', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-67763503', 'direction': '东南', 'distance': '588.266', 'location': '113.641500,34.742713', 'address': '郑州大学韩国语能力等级考试中心', 'poiweight': '0.284877', 'businessarea': '五里堡'}, {'id': 'B0FFFX2LT1', 'name': '郑州大学校办产业管理处', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '540.267', 'location': '113.640911,34.742803', 'address': '大学路75号', 'poiweight': '0.284877', 'businessarea': '五里堡'}, {'id': 'B0FFGWQ2OU', 'name': '河南省化学生物与有机化学重点实验室', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '728.033', 'location': '113.641976,34.741271', 'address': '大学路75号', 'poiweight': '0.192095', 'businessarea': '五里堡'}, {'id': 'B0FFFX4GNP', 'name': '郑州大学学生工作部', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '540.267', 'location': '113.640911,34.742803', 'address': '大学路75号', 'poiweight': '0.285023', 'businessarea': '五里堡'}, {'id': 'B01731B11C', 'name': '郑州大学-商学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '691.446', 'location': '113.642835,34.742664', 'address': '大学路75号郑州大学南校区', 'poiweight': '0.389403', 'businessarea': '五里堡'}, {'id': 'B01731B0ZN', 'name': '郑州大学国际学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '791.145', 'location': '113.643697,34.742107', 'address': '大学路75号', 'poiweight': '0.353751', 'businessarea': '五里堡'}, {'id': 'B0FFGGE5IO', 'name': '郑州大学教学1号楼', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '574.774', 'location': '113.641108,34.742517', 'address': '大学路75号', 'poiweight': '0.280496', 'businessarea': '五里堡'}, {'id': 'B0FFF9SCDH', 'name': '郑州大学口腔医学院D区', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东', 'distance': '777.639', 'location': '113.644610,34.747877', 'address': '大学路中原路路口', 'poiweight': '0.356174', 'businessarea': '五里堡'}, {'id': 'B0173048C6', 'name': '郑州大学医学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东', 'distance': '968.408', 'location': '113.64611,34.7495', 'address': '大学北路40号', 'poiweight': '0.701978', 'businessarea': '五里堡'}, {'id': 'B017316RX2', 'name': '郑州大学国际教育学院', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东北', 'distance': '903.737', 'location': '113.644710,34.750403', 'address': '大学路40号郑州大学医学院国际教育学院', 'poiweight': '0.233624', 'businessarea': '五里堡'}, {'id': 'B01731AJZB', 'name': '郑州大学分析测试中心', 'type': '科教文化服务;学校;高等院校', 'tel': '0371-67763224', 'direction': '东南', 'distance': '728.211', 'location': '113.641976,34.741269', 'address': '大学北路75号', 'poiweight': '0.264403', 'businessarea': '五里堡'}, {'id': 'B0FFGHQ2MI', 'name': '郑州大学临床技能中心', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东北', 'distance': '944.7', 'location': '113.645297,34.750326', 'address': '大学路街道40号(图书馆北门)', 'poiweight': '0.277638', 'businessarea': '五里堡'}, {'id': 'B0FFGHDYPQ', 'name': '郑州大学后勤管理处', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '763.504', 'location': '113.642334,34.741113', 'address': '勤劳街与桃源路交叉口东北200米', 'poiweight': '0.276293', 'businessarea': '五里堡'}, {'id': 'B0FFFY2FPR', 'name': '郑州大学后勤管理处南区办公室', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东南', 'distance': '764.951', 'location': '113.642305,34.741071', 'address': '勤劳街与桃源路交叉口东北150米', 'poiweight': '0.284157', 'businessarea': '五里堡'}, {'id': 'B01731B006', 'name': '郑州大学南校区学习堂', 'type': '科教文化服务;学校;高等院校', 'tel': [], 'direction': '东', 'distance': '696.566', 'location': '113.643458,34.743553', 'address': '大学路街道大学路75号', 'poiweight': '0.353751', 'businessarea': '五里堡'}], 'roads': [{'id': '0371I49F0160461691', 'name': '中原东路', 'direction': '南', 'distance': '155.316', 'location': '113.637,34.7474'}, {'id': '0371I49F016046581', 'name': '大学北路', 'direction': '西', 'distance': '685.71', 'location': '113.644,34.7459'}, {'id': '0371I49F016045336', 'name': '嵩山南路', 'direction': '东', 'distance': '752.889', 'location': '113.628,34.7456'}], 'roadinters': [{'direction': '东', 'distance': '338.798', 'location': '113.6328292,34.74521639', 'first_id': '0371I49F016046243', 'first_name': '兴华北街', 'second_id': '0371I49F016046611267', 'second_name': '广场南路'}], 'aois': [{'id': 'B0FFHK9L2I', 'name': '郑州大学(南校区)', 'adcode': '410103', 'location': '113.638852,34.742962', 'area': '369882.441488', 'distance': '0', 'type': '141201'}]}}\n"
     ]
    }
   ],
   "source": [
    "郑大逆地理编码_all = regeocode(郑大,extensions=\"all\")\n",
    "print(郑大逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.pois</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.aois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)</td>\n",
       "      <td>中国</td>\n",
       "      <td>河南省</td>\n",
       "      <td>郑州市</td>\n",
       "      <td>0371</td>\n",
       "      <td>二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>...</td>\n",
       "      <td>中原东路</td>\n",
       "      <td>49号</td>\n",
       "      <td>113.636252,34.7468006</td>\n",
       "      <td>北</td>\n",
       "      <td>94.0982</td>\n",
       "      <td>[{'location': '113.640765,34.754888', 'name': ...</td>\n",
       "      <td>[{'id': 'B01731AJON', 'name': '郑州大学南校区网络管理中心',...</td>\n",
       "      <td>[{'id': '0371I49F0160461691', 'name': '中原东路', ...</td>\n",
       "      <td>[{'direction': '东', 'distance': '338.798', 'lo...</td>\n",
       "      <td>[{'id': 'B0FFHK9L2I', 'name': '郑州大学(南校区)', 'ad...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode          regeocode.formatted_address  \\\n",
       "0      1   OK    10000  河南省郑州市二七区大学路街道郑州大学出国留学培训中心郑州大学(南校区)   \n",
       "\n",
       "  regeocode.addressComponent.country regeocode.addressComponent.province  \\\n",
       "0                                 中国                                 河南省   \n",
       "\n",
       "  regeocode.addressComponent.city regeocode.addressComponent.citycode  \\\n",
       "0                             郑州市                                0371   \n",
       "\n",
       "  regeocode.addressComponent.district regeocode.addressComponent.adcode  ...  \\\n",
       "0                                 二七区                            410103  ...   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.street  \\\n",
       "0                                           中原东路   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.number  \\\n",
       "0                                            49号   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.location  \\\n",
       "0                            113.636252,34.7468006   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.direction  \\\n",
       "0                                                 北   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.distance  \\\n",
       "0                                          94.0982   \n",
       "\n",
       "            regeocode.addressComponent.businessAreas  \\\n",
       "0  [{'location': '113.640765,34.754888', 'name': ...   \n",
       "\n",
       "                                      regeocode.pois  \\\n",
       "0  [{'id': 'B01731AJON', 'name': '郑州大学南校区网络管理中心',...   \n",
       "\n",
       "                                     regeocode.roads  \\\n",
       "0  [{'id': '0371I49F0160461691', 'name': '中原东路', ...   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'direction': '东', 'distance': '338.798', 'lo...   \n",
       "\n",
       "                                      regeocode.aois  \n",
       "0  [{'id': 'B0FFHK9L2I', 'name': '郑州大学(南校区)', 'ad...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_郑大逆地理编码_all = pd.json_normalize(郑大逆地理编码_all)\n",
    "display(df_郑大逆地理编码_all)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 分析细节"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0371I49F0160461691</td>\n",
       "      <td>中原东路</td>\n",
       "      <td>南</td>\n",
       "      <td>155.316</td>\n",
       "      <td>113.637,34.7474</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0371I49F016046581</td>\n",
       "      <td>大学北路</td>\n",
       "      <td>西</td>\n",
       "      <td>685.71</td>\n",
       "      <td>113.644,34.7459</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0371I49F016045336</td>\n",
       "      <td>嵩山南路</td>\n",
       "      <td>东</td>\n",
       "      <td>752.889</td>\n",
       "      <td>113.628,34.7456</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                   id  name direction distance         location\n",
       "0  0371I49F0160461691  中原东路         南  155.316  113.637,34.7474\n",
       "1   0371I49F016046581  大学北路         西   685.71  113.644,34.7459\n",
       "2   0371I49F016045336  嵩山南路         东  752.889  113.628,34.7456"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "      <th>first_id</th>\n",
       "      <th>first_name</th>\n",
       "      <th>second_id</th>\n",
       "      <th>second_name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>东</td>\n",
       "      <td>338.798</td>\n",
       "      <td>113.6328292,34.74521639</td>\n",
       "      <td>0371I49F016046243</td>\n",
       "      <td>兴华北街</td>\n",
       "      <td>0371I49F016046611267</td>\n",
       "      <td>广场南路</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  direction distance                 location           first_id first_name  \\\n",
       "0         东  338.798  113.6328292,34.74521639  0371I49F016046243       兴华北街   \n",
       "\n",
       "              second_id second_name  \n",
       "0  0371I49F016046611267        广场南路  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>area</th>\n",
       "      <th>distance</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFHK9L2I</td>\n",
       "      <td>郑州大学(南校区)</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.638852,34.742962</td>\n",
       "      <td>369882.441488</td>\n",
       "      <td>0</td>\n",
       "      <td>141201</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id       name  adcode              location           area  \\\n",
       "0  B0FFHK9L2I  郑州大学(南校区)  410103  113.638852,34.742962  369882.441488   \n",
       "\n",
       "  distance    type  \n",
       "0        0  141201  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>tel</th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>businessarea</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B01731AJON</td>\n",
       "      <td>郑州大学南校区网络管理中心</td>\n",
       "      <td>科教文化服务;学校;高等院校|科教文化服务;科研机构;科研机构</td>\n",
       "      <td>0371-67763056</td>\n",
       "      <td>西北</td>\n",
       "      <td>61.592</td>\n",
       "      <td>113.635862,34.746273</td>\n",
       "      <td>郑州大学逸夫楼</td>\n",
       "      <td>0.0914</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFFZA3QP</td>\n",
       "      <td>郑州大学法律硕士教育中心</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-56792306</td>\n",
       "      <td>东南</td>\n",
       "      <td>18.9185</td>\n",
       "      <td>113.636555,34.745835</td>\n",
       "      <td>大学路街道郑州大学国际学院-语文知识杂志社附近</td>\n",
       "      <td>0.169167</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFI1ER1V</td>\n",
       "      <td>郑州大学书法学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-67766117</td>\n",
       "      <td>东北</td>\n",
       "      <td>6.58337</td>\n",
       "      <td>113.636483,34.745999</td>\n",
       "      <td>大学路75号(郑州大学老校区)</td>\n",
       "      <td>0.284884</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFGH55OU</td>\n",
       "      <td>郑州大学语言文学工作委员会</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东</td>\n",
       "      <td>42.4268</td>\n",
       "      <td>113.636878,34.745890</td>\n",
       "      <td>大学路街道郑州大学国际学院-语文知识杂志社附近</td>\n",
       "      <td>0.276304</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFF37KG8</td>\n",
       "      <td>郑州大学信息工程学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>南</td>\n",
       "      <td>415.785</td>\n",
       "      <td>113.637102,34.742269</td>\n",
       "      <td>大学路75号郑州大学南校区</td>\n",
       "      <td>0.17696</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B01730K9IL</td>\n",
       "      <td>郑州大学-软件学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>南</td>\n",
       "      <td>426.423</td>\n",
       "      <td>113.637125,34.742175</td>\n",
       "      <td>大学路75号郑州大学南校区</td>\n",
       "      <td>0.540443</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B01730IADW</td>\n",
       "      <td>郑州大学南校区</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-67763641</td>\n",
       "      <td>东南</td>\n",
       "      <td>486.911</td>\n",
       "      <td>113.639403,34.742336</td>\n",
       "      <td>大学北路75号</td>\n",
       "      <td>0.645774</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFFOGIAC</td>\n",
       "      <td>郑州大学音乐学院2号琴房楼</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>427.19</td>\n",
       "      <td>113.640033,34.743525</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.197281</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B01730KBZ4</td>\n",
       "      <td>郑州大学南校区音乐学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>523.992</td>\n",
       "      <td>113.639777,34.742144</td>\n",
       "      <td>大学路75号郑州大学南校区</td>\n",
       "      <td>0.435148</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFG23WFQ</td>\n",
       "      <td>防空兵学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>北</td>\n",
       "      <td>565.657</td>\n",
       "      <td>113.637288,34.751003</td>\n",
       "      <td>建设东路南50米</td>\n",
       "      <td>0.169548</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B01731B0KM</td>\n",
       "      <td>郑州大学-MPA教育中心</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>524.839</td>\n",
       "      <td>113.638578,34.741591</td>\n",
       "      <td>大学路街道大学路75号郑州大学21号楼</td>\n",
       "      <td>0.204922</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B01730KAX4</td>\n",
       "      <td>郑州大学南校区国际教育学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-67767253</td>\n",
       "      <td>东南</td>\n",
       "      <td>591.024</td>\n",
       "      <td>113.641527,34.742701</td>\n",
       "      <td>大学路75号(郑州大学老校区)</td>\n",
       "      <td>0.393128</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B01731B0JQ</td>\n",
       "      <td>郑州大学化学与分子工程学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>619.117</td>\n",
       "      <td>113.642273,34.743157</td>\n",
       "      <td>大学路75号郑州大学南校区</td>\n",
       "      <td>0.17696</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B01731B0RE</td>\n",
       "      <td>郑州大学韩国语能力等级考试中心</td>\n",
       "      <td>科教文化服务;学校;高等院校|生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>590.55</td>\n",
       "      <td>113.641527,34.742708</td>\n",
       "      <td>郑州大学国际教育学院</td>\n",
       "      <td>0.181607</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFFX2QG9</td>\n",
       "      <td>郑州大学培材韩国语教育中心</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-67763503</td>\n",
       "      <td>东南</td>\n",
       "      <td>588.266</td>\n",
       "      <td>113.641500,34.742713</td>\n",
       "      <td>郑州大学韩国语能力等级考试中心</td>\n",
       "      <td>0.284877</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFFX2LT1</td>\n",
       "      <td>郑州大学校办产业管理处</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>540.267</td>\n",
       "      <td>113.640911,34.742803</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.284877</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFGWQ2OU</td>\n",
       "      <td>河南省化学生物与有机化学重点实验室</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>728.033</td>\n",
       "      <td>113.641976,34.741271</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.192095</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFFX4GNP</td>\n",
       "      <td>郑州大学学生工作部</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>540.267</td>\n",
       "      <td>113.640911,34.742803</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.285023</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B01731B11C</td>\n",
       "      <td>郑州大学-商学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>691.446</td>\n",
       "      <td>113.642835,34.742664</td>\n",
       "      <td>大学路75号郑州大学南校区</td>\n",
       "      <td>0.389403</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B01731B0ZN</td>\n",
       "      <td>郑州大学国际学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>791.145</td>\n",
       "      <td>113.643697,34.742107</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.353751</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFGGE5IO</td>\n",
       "      <td>郑州大学教学1号楼</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>574.774</td>\n",
       "      <td>113.641108,34.742517</td>\n",
       "      <td>大学路75号</td>\n",
       "      <td>0.280496</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B0FFF9SCDH</td>\n",
       "      <td>郑州大学口腔医学院D区</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东</td>\n",
       "      <td>777.639</td>\n",
       "      <td>113.644610,34.747877</td>\n",
       "      <td>大学路中原路路口</td>\n",
       "      <td>0.356174</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0173048C6</td>\n",
       "      <td>郑州大学医学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东</td>\n",
       "      <td>968.408</td>\n",
       "      <td>113.64611,34.7495</td>\n",
       "      <td>大学北路40号</td>\n",
       "      <td>0.701978</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B017316RX2</td>\n",
       "      <td>郑州大学国际教育学院</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东北</td>\n",
       "      <td>903.737</td>\n",
       "      <td>113.644710,34.750403</td>\n",
       "      <td>大学路40号郑州大学医学院国际教育学院</td>\n",
       "      <td>0.233624</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B01731AJZB</td>\n",
       "      <td>郑州大学分析测试中心</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>0371-67763224</td>\n",
       "      <td>东南</td>\n",
       "      <td>728.211</td>\n",
       "      <td>113.641976,34.741269</td>\n",
       "      <td>大学北路75号</td>\n",
       "      <td>0.264403</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B0FFGHQ2MI</td>\n",
       "      <td>郑州大学临床技能中心</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东北</td>\n",
       "      <td>944.7</td>\n",
       "      <td>113.645297,34.750326</td>\n",
       "      <td>大学路街道40号(图书馆北门)</td>\n",
       "      <td>0.277638</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B0FFGHDYPQ</td>\n",
       "      <td>郑州大学后勤管理处</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>763.504</td>\n",
       "      <td>113.642334,34.741113</td>\n",
       "      <td>勤劳街与桃源路交叉口东北200米</td>\n",
       "      <td>0.276293</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFFY2FPR</td>\n",
       "      <td>郑州大学后勤管理处南区办公室</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>764.951</td>\n",
       "      <td>113.642305,34.741071</td>\n",
       "      <td>勤劳街与桃源路交叉口东北150米</td>\n",
       "      <td>0.284157</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B01731B006</td>\n",
       "      <td>郑州大学南校区学习堂</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>[]</td>\n",
       "      <td>东</td>\n",
       "      <td>696.566</td>\n",
       "      <td>113.643458,34.743553</td>\n",
       "      <td>大学路街道大学路75号</td>\n",
       "      <td>0.353751</td>\n",
       "      <td>五里堡</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id               name                               type  \\\n",
       "0   B01731AJON      郑州大学南校区网络管理中心    科教文化服务;学校;高等院校|科教文化服务;科研机构;科研机构   \n",
       "1   B0FFFZA3QP       郑州大学法律硕士教育中心                     科教文化服务;学校;高等院校   \n",
       "2   B0FFI1ER1V           郑州大学书法学院                     科教文化服务;学校;高等院校   \n",
       "3   B0FFGH55OU      郑州大学语言文学工作委员会                     科教文化服务;学校;高等院校   \n",
       "4   B0FFF37KG8         郑州大学信息工程学院                     科教文化服务;学校;高等院校   \n",
       "5   B01730K9IL          郑州大学-软件学院                     科教文化服务;学校;高等院校   \n",
       "6   B01730IADW            郑州大学南校区                     科教文化服务;学校;高等院校   \n",
       "7   B0FFFOGIAC      郑州大学音乐学院2号琴房楼                     科教文化服务;学校;高等院校   \n",
       "8   B01730KBZ4        郑州大学南校区音乐学院                     科教文化服务;学校;高等院校   \n",
       "9   B0FFG23WFQ              防空兵学院                     科教文化服务;学校;高等院校   \n",
       "10  B01731B0KM       郑州大学-MPA教育中心                     科教文化服务;学校;高等院校   \n",
       "11  B01730KAX4      郑州大学南校区国际教育学院                     科教文化服务;学校;高等院校   \n",
       "12  B01731B0JQ      郑州大学化学与分子工程学院                     科教文化服务;学校;高等院校   \n",
       "13  B01731B0RE    郑州大学韩国语能力等级考试中心  科教文化服务;学校;高等院校|生活服务;生活服务场所;生活服务场所   \n",
       "14  B0FFFX2QG9      郑州大学培材韩国语教育中心                     科教文化服务;学校;高等院校   \n",
       "15  B0FFFX2LT1        郑州大学校办产业管理处                     科教文化服务;学校;高等院校   \n",
       "16  B0FFGWQ2OU  河南省化学生物与有机化学重点实验室                     科教文化服务;学校;高等院校   \n",
       "17  B0FFFX4GNP          郑州大学学生工作部                     科教文化服务;学校;高等院校   \n",
       "18  B01731B11C           郑州大学-商学院                     科教文化服务;学校;高等院校   \n",
       "19  B01731B0ZN           郑州大学国际学院                     科教文化服务;学校;高等院校   \n",
       "20  B0FFGGE5IO          郑州大学教学1号楼                     科教文化服务;学校;高等院校   \n",
       "21  B0FFF9SCDH        郑州大学口腔医学院D区                     科教文化服务;学校;高等院校   \n",
       "22  B0173048C6            郑州大学医学院                     科教文化服务;学校;高等院校   \n",
       "23  B017316RX2         郑州大学国际教育学院                     科教文化服务;学校;高等院校   \n",
       "24  B01731AJZB         郑州大学分析测试中心                     科教文化服务;学校;高等院校   \n",
       "25  B0FFGHQ2MI         郑州大学临床技能中心                     科教文化服务;学校;高等院校   \n",
       "26  B0FFGHDYPQ          郑州大学后勤管理处                     科教文化服务;学校;高等院校   \n",
       "27  B0FFFY2FPR     郑州大学后勤管理处南区办公室                     科教文化服务;学校;高等院校   \n",
       "28  B01731B006         郑州大学南校区学习堂                     科教文化服务;学校;高等院校   \n",
       "\n",
       "              tel direction distance              location  \\\n",
       "0   0371-67763056        西北   61.592  113.635862,34.746273   \n",
       "1   0371-56792306        东南  18.9185  113.636555,34.745835   \n",
       "2   0371-67766117        东北  6.58337  113.636483,34.745999   \n",
       "3              []         东  42.4268  113.636878,34.745890   \n",
       "4              []         南  415.785  113.637102,34.742269   \n",
       "5              []         南  426.423  113.637125,34.742175   \n",
       "6   0371-67763641        东南  486.911  113.639403,34.742336   \n",
       "7              []        东南   427.19  113.640033,34.743525   \n",
       "8              []        东南  523.992  113.639777,34.742144   \n",
       "9              []         北  565.657  113.637288,34.751003   \n",
       "10             []        东南  524.839  113.638578,34.741591   \n",
       "11  0371-67767253        东南  591.024  113.641527,34.742701   \n",
       "12             []        东南  619.117  113.642273,34.743157   \n",
       "13             []        东南   590.55  113.641527,34.742708   \n",
       "14  0371-67763503        东南  588.266  113.641500,34.742713   \n",
       "15             []        东南  540.267  113.640911,34.742803   \n",
       "16             []        东南  728.033  113.641976,34.741271   \n",
       "17             []        东南  540.267  113.640911,34.742803   \n",
       "18             []        东南  691.446  113.642835,34.742664   \n",
       "19             []        东南  791.145  113.643697,34.742107   \n",
       "20             []        东南  574.774  113.641108,34.742517   \n",
       "21             []         东  777.639  113.644610,34.747877   \n",
       "22             []         东  968.408     113.64611,34.7495   \n",
       "23             []        东北  903.737  113.644710,34.750403   \n",
       "24  0371-67763224        东南  728.211  113.641976,34.741269   \n",
       "25             []        东北    944.7  113.645297,34.750326   \n",
       "26             []        东南  763.504  113.642334,34.741113   \n",
       "27             []        东南  764.951  113.642305,34.741071   \n",
       "28             []         东  696.566  113.643458,34.743553   \n",
       "\n",
       "                    address poiweight businessarea  \n",
       "0                   郑州大学逸夫楼    0.0914          五里堡  \n",
       "1   大学路街道郑州大学国际学院-语文知识杂志社附近  0.169167          五里堡  \n",
       "2           大学路75号(郑州大学老校区)  0.284884          五里堡  \n",
       "3   大学路街道郑州大学国际学院-语文知识杂志社附近  0.276304          五里堡  \n",
       "4             大学路75号郑州大学南校区   0.17696          五里堡  \n",
       "5             大学路75号郑州大学南校区  0.540443          五里堡  \n",
       "6                   大学北路75号  0.645774          五里堡  \n",
       "7                    大学路75号  0.197281          五里堡  \n",
       "8             大学路75号郑州大学南校区  0.435148          五里堡  \n",
       "9                  建设东路南50米  0.169548          五里堡  \n",
       "10      大学路街道大学路75号郑州大学21号楼  0.204922          五里堡  \n",
       "11          大学路75号(郑州大学老校区)  0.393128          五里堡  \n",
       "12            大学路75号郑州大学南校区   0.17696          五里堡  \n",
       "13               郑州大学国际教育学院  0.181607          五里堡  \n",
       "14          郑州大学韩国语能力等级考试中心  0.284877          五里堡  \n",
       "15                   大学路75号  0.284877          五里堡  \n",
       "16                   大学路75号  0.192095          五里堡  \n",
       "17                   大学路75号  0.285023          五里堡  \n",
       "18            大学路75号郑州大学南校区  0.389403          五里堡  \n",
       "19                   大学路75号  0.353751          五里堡  \n",
       "20                   大学路75号  0.280496          五里堡  \n",
       "21                 大学路中原路路口  0.356174          五里堡  \n",
       "22                  大学北路40号  0.701978          五里堡  \n",
       "23      大学路40号郑州大学医学院国际教育学院  0.233624          五里堡  \n",
       "24                  大学北路75号  0.264403          五里堡  \n",
       "25          大学路街道40号(图书馆北门)  0.277638          五里堡  \n",
       "26         勤劳街与桃源路交叉口东北200米  0.276293          五里堡  \n",
       "27         勤劳街与桃源路交叉口东北150米  0.284157          五里堡  \n",
       "28              大学路街道大学路75号  0.353751          五里堡  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "roads = pd.json_normalize(郑大逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(郑大逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(郑大逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(郑大逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 路径规划"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 步行路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)郑大_location: 113.636423,34.745966 (终点)四十七中_location: 113.687847,34.806832\n"
     ]
    }
   ],
   "source": [
    "四十七中 = geocode('河南省郑州市金水区第四十七中学')\n",
    "四十七中_location = 四十七中['geocodes'][0]['location']\n",
    "郑大_location = 郑大['geocodes'][0]['location']\n",
    "print(\"(起点)郑大_location:\",郑大_location,\"(终点)四十七中_location:\",四十七中_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向北步行80米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>80</td>\n",
       "      <td>64</td>\n",
       "      <td>113.636337,34.746155;113.636337,34.746727;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向东步行13米左转</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>13</td>\n",
       "      <td>10</td>\n",
       "      <td>113.63635,34.746879;113.63648,34.746914</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向北步行49米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "      <td>113.63648,34.746914;113.636497,34.747231;113.6...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿中原东路向东步行801米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>中原东路</td>\n",
       "      <td>801</td>\n",
       "      <td>641</td>\n",
       "      <td>113.636497,34.747361;113.637739,34.747365;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿中原东路向东步行199米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>中原东路</td>\n",
       "      <td>199</td>\n",
       "      <td>159</td>\n",
       "      <td>113.645299,34.747483;113.645569,34.747491;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>沿中原东路向东步行1409米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>中原东路</td>\n",
       "      <td>1409</td>\n",
       "      <td>1127</td>\n",
       "      <td>113.647513,34.747496;113.647743,34.747418;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向东步行188米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>188</td>\n",
       "      <td>150</td>\n",
       "      <td>113.661923,34.751354;113.66217,34.751302;113.6...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>步行409米左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>409</td>\n",
       "      <td>327</td>\n",
       "      <td>113.663841,34.75184;113.664345,34.751862;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿人民路向东北步行1507米向左前方行走</td>\n",
       "      <td>东北</td>\n",
       "      <td>人民路</td>\n",
       "      <td>1507</td>\n",
       "      <td>1206</td>\n",
       "      <td>113.667257,34.752921;113.667752,34.753138;113....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿人民路向东北步行259米左转</td>\n",
       "      <td>东北</td>\n",
       "      <td>人民路</td>\n",
       "      <td>259</td>\n",
       "      <td>207</td>\n",
       "      <td>113.679661,34.76201;113.679709,34.762083;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿金水路向西步行22米右转</td>\n",
       "      <td>西</td>\n",
       "      <td>金水路</td>\n",
       "      <td>22</td>\n",
       "      <td>18</td>\n",
       "      <td>113.681675,34.763615;113.681528,34.763581;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>步行47米右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>47</td>\n",
       "      <td>38</td>\n",
       "      <td>113.681432,34.763568;113.68145,34.763989</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>沿金水路向东步行34米向左前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>金水路</td>\n",
       "      <td>34</td>\n",
       "      <td>27</td>\n",
       "      <td>113.68145,34.763989;113.681723,34.763997;113.6...</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>沿花园路向北步行3774米向左前方行走</td>\n",
       "      <td>北</td>\n",
       "      <td>花园路</td>\n",
       "      <td>3774</td>\n",
       "      <td>3019</td>\n",
       "      <td>113.681806,34.764054;113.681823,34.764314;113....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>向北步行750米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>750</td>\n",
       "      <td>600</td>\n",
       "      <td>113.681562,34.798411;113.681528,34.798542;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>沿广电南路向东步行343米向左前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>广电南路</td>\n",
       "      <td>343</td>\n",
       "      <td>274</td>\n",
       "      <td>113.68145,34.805187;113.681593,34.805221;113.6...</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>沿广电南路向东步行210米左转</td>\n",
       "      <td>东</td>\n",
       "      <td>广电南路</td>\n",
       "      <td>210</td>\n",
       "      <td>168</td>\n",
       "      <td>113.685165,34.805621;113.685812,34.805603;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>向北步行66米到达目的地</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>66</td>\n",
       "      <td>53</td>\n",
       "      <td>113.687483,34.805608;113.687491,34.805738;113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             instruction orientation  road distance duration  \\\n",
       "0              向北步行80米右转           北    []       80       64   \n",
       "1              向东步行13米左转           东    []       13       10   \n",
       "2              向北步行49米右转           北    []       49       39   \n",
       "3    沿中原东路向东步行801米向右前方行走           东  中原东路      801      641   \n",
       "4    沿中原东路向东步行199米向右前方行走           东  中原东路      199      159   \n",
       "5   沿中原东路向东步行1409米向右前方行走           东  中原东路     1409     1127   \n",
       "6         向东步行188米向右前方行走           东    []      188      150   \n",
       "7               步行409米左转          []    []      409      327   \n",
       "8   沿人民路向东北步行1507米向左前方行走          东北   人民路     1507     1206   \n",
       "9        沿人民路向东北步行259米左转          东北   人民路      259      207   \n",
       "10         沿金水路向西步行22米右转           西   金水路       22       18   \n",
       "11               步行47米右转          []    []       47       38   \n",
       "12     沿金水路向东步行34米向左前方行走           东   金水路       34       27   \n",
       "13   沿花园路向北步行3774米向左前方行走           北   花园路     3774     3019   \n",
       "14            向北步行750米右转           北    []      750      600   \n",
       "15   沿广电南路向东步行343米向左前方行走           东  广电南路      343      274   \n",
       "16       沿广电南路向东步行210米左转           东  广电南路      210      168   \n",
       "17          向北步行66米到达目的地           北    []       66       53   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0   113.636337,34.746155;113.636337,34.746727;113....      右转   \n",
       "1             113.63635,34.746879;113.63648,34.746914      左转   \n",
       "2   113.63648,34.746914;113.636497,34.747231;113.6...      右转   \n",
       "3   113.636497,34.747361;113.637739,34.747365;113....  向右前方行走   \n",
       "4   113.645299,34.747483;113.645569,34.747491;113....  向右前方行走   \n",
       "5   113.647513,34.747496;113.647743,34.747418;113....  向右前方行走   \n",
       "6   113.661923,34.751354;113.66217,34.751302;113.6...  向右前方行走   \n",
       "7   113.663841,34.75184;113.664345,34.751862;113.6...      左转   \n",
       "8   113.667257,34.752921;113.667752,34.753138;113....  向左前方行走   \n",
       "9   113.679661,34.76201;113.679709,34.762083;113.6...      左转   \n",
       "10  113.681675,34.763615;113.681528,34.763581;113....      右转   \n",
       "11           113.681432,34.763568;113.68145,34.763989      右转   \n",
       "12  113.68145,34.763989;113.681723,34.763997;113.6...  向左前方行走   \n",
       "13  113.681806,34.764054;113.681823,34.764314;113....  向左前方行走   \n",
       "14  113.681562,34.798411;113.681528,34.798542;113....      右转   \n",
       "15  113.68145,34.805187;113.681593,34.805221;113.6...  向左前方行走   \n",
       "16  113.685165,34.805621;113.685812,34.805603;113....      左转   \n",
       "17  113.687483,34.805608;113.687491,34.805738;113....      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         5  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         1  \n",
       "12               []         0  \n",
       "13               []         0  \n",
       "14               []         0  \n",
       "15               []         0  \n",
       "16               []         0  \n",
       "17            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0                向北步行80米右转\n",
       "1                向东步行13米左转\n",
       "2                向北步行49米右转\n",
       "3      沿中原东路向东步行801米向右前方行走\n",
       "4      沿中原东路向东步行199米向右前方行走\n",
       "5     沿中原东路向东步行1409米向右前方行走\n",
       "6           向东步行188米向右前方行走\n",
       "7                 步行409米左转\n",
       "8     沿人民路向东北步行1507米向左前方行走\n",
       "9          沿人民路向东北步行259米左转\n",
       "10           沿金水路向西步行22米右转\n",
       "11                 步行47米右转\n",
       "12       沿金水路向东步行34米向左前方行走\n",
       "13     沿花园路向北步行3774米向左前方行走\n",
       "14              向北步行750米右转\n",
       "15     沿广电南路向东步行343米向左前方行走\n",
       "16         沿广电南路向东步行210米左转\n",
       "17            向北步行66米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "郑大_四十七中 = walking(郑大_location,四十七中_location)\n",
    "df_步行路径规划 = pd.json_normalize(郑大_四十七中[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 公交路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)六十二中_location: 113.664188,34.710717 (终点)二七塔_location: 113.640179,34.723930\n"
     ]
    }
   ],
   "source": [
    "六十二中 = geocode('河南省郑州市第六十二中学') \n",
    "六十二中_location = 六十二中['geocodes'][0]['location'] \n",
    "二七塔 = geocode('河南省郑州市二七塔') \n",
    "二七塔_location = 二七塔['geocodes'][0]['location'] \n",
    "print(\"(起点)六十二中_location:\",六十二中_location,\"(终点)二七塔_location:\",二七塔_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '5', 'route': {'origin': '113.664188,34.710717', 'destination': '113.640179,34.723930', 'distance': '3737', 'taxi_cost': '10.6055', 'transits': [{'cost': '1.0', 'duration': '2329', 'nightflag': '0', 'walking_distance': '1535', 'distance': '4225', 'missed': '0', 'emergency': {'linetype': '1', 'eventTagDesc': '提示', 'ldescription': '203路自3月9日起，工作日通勤高峰时段（早7:00--8:30、晚17:00--18:30）发车间隔调整为为8分钟以内，其它时段发车间隔调整为20分钟以内，首末班准点发车，恢复时间另行通知', 'ssstatus': [], 'ssdescription': [], 'esstatus': [], 'esdescription': [], 'busid': '410100013395', 'busname': '203路'}, 'segments': [{'taxi': [], 'walking': {'origin': '113.664215,34.710854', 'destination': '113.657219,34.711407', 'distance': '1002', 'duration': '858', 'steps': [{'instruction': '步行95米右转', 'road': [], 'distance': '95', 'duration': [], 'polyline': '113.664215,34.710854;113.664780,34.710842;113.664841,34.710777;113.664841,34.710716;113.664864,34.710678;113.664940,34.710655;113.665123,34.710651', 'action': '右转', 'assistant_action': []}, {'instruction': '沿碧云路步行52米右转', 'road': '碧云路', 'distance': '52', 'duration': [], 'polyline': '113.665123,34.710648;113.665115,34.710175', 'action': '右转', 'assistant_action': []}, {'instruction': '步行714米右转', 'road': [], 'distance': '714', 'duration': [], 'polyline': '113.665115,34.710171;113.663498,34.710171;113.662758,34.710171;113.662285,34.710159;113.662231,34.710159;113.661774,34.710163;113.661278,34.710163;113.660507,34.710155;113.660149,34.710155;113.658524,34.710144;113.658463,34.710144;113.657265,34.710125', 'action': '右转', 'assistant_action': []}, {'instruction': '沿京广南路步行141米左转', 'road': '京广南路', 'distance': '141', 'duration': [], 'polyline': '113.657257,34.710121;113.657227,34.710838;113.657219,34.711124;113.657227,34.711407', 'action': '左转', 'assistant_action': []}, {'instruction': '步行1米到达市第六人民医院', 'road': [], 'distance': '1', 'duration': [], 'polyline': '113.657227,34.711407;113.657219,34.711407', 'action': [], 'assistant_action': '到达市第六人民医院'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '市第六人民医院', 'id': '410100013395004', 'location': '113.657219,34.711426'}, 'arrival_stop': {'name': '大学路政通路', 'id': '410100013395008', 'location': '113.644188,34.725620'}, 'name': '203路(汽车客运南站--建设路西三环)', 'id': '410100013395', 'type': '普通公交线路', 'distance': '2690', 'duration': '1014', 'polyline': '113.657219,34.711426;113.657227,34.711502;113.657219,34.711914;113.657227,34.713055;113.657227,34.714146;113.657219,34.714573;113.657211,34.714954;113.657211,34.715687;113.657211,34.716057;113.657211,34.716465;113.657211,34.716797;113.657211,34.717110;113.657211,34.717449;113.657219,34.718830;113.657227,34.720303;113.656960,34.720448;113.655304,34.720459;113.654930,34.720463;113.654922,34.720463;113.654625,34.720470;113.654007,34.720482;113.653694,34.720486;113.653488,34.720486;113.653076,34.720486;113.651993,34.720486;113.650551,34.720486;113.649635,34.720486;113.649200,34.720482;113.648323,34.720474;113.646835,34.720516;113.644073,34.720577;113.644073,34.721104;113.644081,34.721848;113.644196,34.721848;113.644196,34.722088;113.644188,34.722565;113.644188,34.722561;113.644188,34.722626;113.644188,34.723129;113.644188,34.723354;113.644196,34.724827;113.644188,34.725620', 'bustimetag': '0', 'start_time': [], 'end_time': [], 'via_num': '3', 'via_stops': [{'name': '汽车客运总站', 'id': '410100013395005', 'location': '113.654930,34.720463'}, {'name': '老代庄', 'id': '410100013395006', 'location': '113.649200,34.720482'}, {'name': '大学路航海路', 'id': '410100013395007', 'location': '113.644188,34.722565'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.644180,34.725647', 'destination': '113.640182,34.724045', 'distance': '533', 'duration': '456', 'steps': [{'instruction': '沿大学中路步行89米右转', 'road': '大学中路', 'distance': '89', 'duration': [], 'polyline': '113.644180,34.725647;113.644180,34.724838', 'action': '右转', 'assistant_action': []}, {'instruction': '沿政通路步行347米左转', 'road': '政通路', 'distance': '347', 'duration': [], 'polyline': '113.644180,34.724834;113.644096,34.724834;113.643959,34.724834;113.643845,34.724834;113.642929,34.724827;113.641594,34.724827;113.640976,34.724827;113.640381,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '步行97米', 'road': [], 'distance': '97', 'duration': [], 'polyline': '113.640381,34.724827;113.640373,34.724678;113.640358,34.724167;113.640335,34.724087;113.640289,34.724068;113.640221,34.724045;113.640182,34.724045', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '3.0', 'duration': '2121', 'nightflag': '0', 'walking_distance': '1316', 'distance': '4712', 'missed': '0', 'emergency': {'linetype': '1', 'eventTagDesc': '提示', 'ldescription': 'S162路自3月9日起，工作日通勤高峰时段（早7:00--8:30、晚17:00--18:30）发车间隔调整为为10分钟以内，其它时段发车间隔调整为20分钟以内，首末班准点发车，恢复时间另行通知', 'ssstatus': [], 'ssdescription': [], 'esstatus': [], 'esdescription': [], 'busid': '900000086304', 'busname': 'S162路'}, 'segments': [{'taxi': [], 'walking': {'origin': '113.664215,34.710854', 'destination': '113.665237,34.710762', 'distance': '222', 'duration': '190', 'steps': [{'instruction': '步行95米右转', 'road': [], 'distance': '95', 'duration': [], 'polyline': '113.664215,34.710854;113.664780,34.710842;113.664841,34.710777;113.664841,34.710716;113.664864,34.710678;113.664940,34.710655;113.665123,34.710651', 'action': '右转', 'assistant_action': []}, {'instruction': '沿碧云路步行52米左转', 'road': '碧云路', 'distance': '52', 'duration': [], 'polyline': '113.665123,34.710648;113.665115,34.710175', 'action': '左转', 'assistant_action': []}, {'instruction': '步行10米左转', 'road': [], 'distance': '10', 'duration': [], 'polyline': '113.665115,34.710171;113.665222,34.710178', 'action': '左转', 'assistant_action': []}, {'instruction': '沿碧云路步行65米到达碧云路长江路', 'road': '碧云路', 'distance': '65', 'duration': [], 'polyline': '113.665222,34.710178;113.665237,34.710762', 'action': [], 'assistant_action': '到达碧云路长江路'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '碧云路长江路', 'id': '900000086304029', 'location': '113.665237,34.710815'}, 'arrival_stop': {'name': '航海路祥云路', 'id': '900000086304037', 'location': '113.668892,34.720333'}, 'name': 'S162路(佛岗村公交站--城南路城东路)', 'id': '900000086304', 'type': [], 'distance': '1331', 'duration': '639', 'polyline': '113.665237,34.710815;113.665237,34.710812;113.665253,34.711876;113.665230,34.713097;113.665230,34.713486;113.665230,34.713757;113.665230,34.714306;113.665802,34.714314;113.665794,34.714314;113.667671,34.714348;113.667694,34.714775;113.667717,34.715008;113.667763,34.715942;113.667770,34.716122;113.667793,34.716492;113.667801,34.716797;113.667831,34.717239;113.667908,34.717838;113.667908,34.717834;113.667953,34.718124;113.667953,34.718185;113.668007,34.718868;113.668045,34.719284;113.668053,34.719517;113.668098,34.720329;113.668892,34.720333', 'bustimetag': '0', 'start_time': [], 'end_time': [], 'via_num': '3', 'via_stops': [{'name': '冯庄路祥云路', 'id': '900000086304034', 'location': '113.665802,34.714314'}, {'name': '正商城和园社区', 'id': '900000086304035', 'location': '113.667694,34.714775'}, {'name': '冯庄社区', 'id': '900000086304036', 'location': '113.667908,34.717838'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.668892,34.720333', 'destination': '113.667892,34.720428', 'distance': '152', 'duration': '130', 'steps': [{'instruction': '沿航海中路步行16米右转', 'road': '航海中路', 'distance': '16', 'duration': [], 'polyline': '113.668892,34.720333;113.669067,34.720333', 'action': '右转', 'assistant_action': []}, {'instruction': '步行136米到达冯庄', 'road': [], 'distance': '136', 'duration': [], 'polyline': '113.669067,34.720333;113.669067,34.720245;113.668915,34.720245;113.668915,34.720421;113.668900,34.720425;113.667892,34.720428', 'action': [], 'assistant_action': '到达冯庄'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '冯庄', 'id': '900000058317024', 'location': '113.667892,34.720432'}, 'arrival_stop': {'name': '市第二人民医院', 'id': '900000058317026', 'location': '113.644129,34.720446'}, 'name': '地铁5号线内环(月季公园--月季公园)', 'id': '900000058317', 'type': '地铁线路', 'distance': '2065', 'duration': '354', 'polyline': '113.667892,34.720432;113.666535,34.720433;113.665191,34.720420;113.662962,34.720415;113.660502,34.720418;113.659939,34.720419;113.659075,34.720377;113.658936,34.720362;113.658739,34.720339;113.658348,34.720285;113.657801,34.720228;113.656817,34.720213;113.655846,34.720222;113.655717,34.720230;113.655568,34.720251;113.655390,34.720287;113.655198,34.720333;113.655099,34.720356;113.654993,34.720373;113.654859,34.720387;113.654703,34.720394;113.654404,34.720404;113.653858,34.720401;113.651679,34.720393;113.648297,34.720389;113.646282,34.720434;113.646073,34.720438;113.645421,34.720442;113.644129,34.720446', 'bustimetag': '0', 'start_time': '0600', 'end_time': '2200', 'via_num': '1', 'via_stops': [{'name': '京广南路', 'id': '900000058317025', 'location': '113.656817,34.720213'}]}]}, 'entrance': {'name': 'A口', 'location': '113.669067,34.720245'}, 'exit': {'name': 'C口', 'location': '113.643112,34.720585'}, 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.644127,34.720432', 'destination': '113.640182,34.724045', 'distance': '942', 'duration': '807', 'steps': [{'instruction': '步行113米右转', 'road': [], 'distance': '113', 'duration': [], 'polyline': '113.644127,34.720432;113.643402,34.720440;113.643356,34.720444;113.643356,34.720585;113.643120,34.720585;113.643120,34.720551', 'action': '右转', 'assistant_action': []}, {'instruction': '沿航海中路步行197米右转', 'road': '航海中路', 'distance': '197', 'duration': [], 'polyline': '113.643112,34.720547;113.642899,34.720547;113.642227,34.720509;113.641922,34.720470;113.640961,34.720470', 'action': '右转', 'assistant_action': []}, {'instruction': '沿人和路步行480米左转', 'road': '人和路', 'distance': '480', 'duration': [], 'polyline': '113.640961,34.720463;113.640976,34.721245;113.640991,34.721867;113.640991,34.722153;113.640999,34.722618;113.640991,34.722660;113.640984,34.722878;113.640976,34.723465;113.640976,34.723782;113.640976,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '沿政通路步行55米左转', 'road': '政通路', 'distance': '55', 'duration': [], 'polyline': '113.640976,34.724827;113.640381,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '步行97米', 'road': [], 'distance': '97', 'duration': [], 'polyline': '113.640381,34.724827;113.640373,34.724678;113.640358,34.724167;113.640335,34.724087;113.640289,34.724068;113.640221,34.724045;113.640182,34.724045', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '1.0', 'duration': '2654', 'nightflag': '0', 'walking_distance': '1510', 'distance': '4272', 'missed': '0', 'emergency': {'linetype': '1', 'eventTagDesc': '提示', 'ldescription': '111路自3月9日起，工作日通勤高峰时段（早7:00--8:30、晚17:00--18:30）发车间隔调整为为10分钟以内，其它时段发车间隔调整为20分钟以内，首末班准点发车，恢复时间另行通知', 'ssstatus': [], 'ssdescription': [], 'esstatus': [], 'esdescription': [], 'busid': '410100013292', 'busname': '111路'}, 'segments': [{'taxi': [], 'walking': {'origin': '113.664215,34.710854', 'destination': '113.656097,34.710022', 'distance': '977', 'duration': '837', 'steps': [{'instruction': '步行95米右转', 'road': [], 'distance': '95', 'duration': [], 'polyline': '113.664215,34.710854;113.664780,34.710842;113.664841,34.710777;113.664841,34.710716;113.664864,34.710678;113.664940,34.710655;113.665123,34.710651', 'action': '右转', 'assistant_action': []}, {'instruction': '沿碧云路步行52米右转', 'road': '碧云路', 'distance': '52', 'duration': [], 'polyline': '113.665123,34.710648;113.665115,34.710175', 'action': '右转', 'assistant_action': []}, {'instruction': '步行743米左转', 'road': [], 'distance': '743', 'duration': [], 'polyline': '113.665115,34.710171;113.663498,34.710171;113.662758,34.710171;113.662285,34.710159;113.662231,34.710159;113.661774,34.710163;113.661278,34.710163;113.660507,34.710155;113.660149,34.710155;113.658524,34.710144;113.658463,34.710144;113.657265,34.710125;113.656937,34.710129', 'action': '左转', 'assistant_action': []}, {'instruction': '沿京广南路步行11米右转', 'road': '京广南路', 'distance': '11', 'duration': [], 'polyline': '113.656937,34.710129;113.656937,34.710026', 'action': '右转', 'assistant_action': []}, {'instruction': '沿长江路步行76米到达长江路京广路站', 'road': '长江路', 'distance': '76', 'duration': [], 'polyline': '113.656937,34.710022;113.656097,34.710022', 'action': [], 'assistant_action': '到达长江路京广路站'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '长江路京广路站', 'id': '410100013292062', 'location': '113.656097,34.710026'}, 'arrival_stop': {'name': '大学路政通路', 'id': '410100013292068', 'location': '113.644188,34.725647'}, 'name': '111路(百荣世贸商城北门--医学院)', 'id': '410100013292', 'type': '普通公交线路', 'distance': '2762', 'duration': '1360', 'polyline': '113.656097,34.710026;113.655487,34.710026;113.653961,34.710014;113.651909,34.709991;113.650528,34.709991;113.650482,34.709991;113.649734,34.709988;113.649368,34.709988;113.647461,34.709988;113.646599,34.709988;113.645615,34.709991;113.644127,34.709999;113.644119,34.710888;113.644119,34.711311;113.644119,34.711987;113.644104,34.712696;113.644104,34.713051;113.644104,34.713776;113.644104,34.714764;113.644104,34.715305;113.644104,34.716038;113.644104,34.716797;113.644104,34.716866;113.644119,34.719139;113.644073,34.720390;113.644073,34.720577;113.644188,34.720699;113.644188,34.721111;113.644196,34.721848;113.644196,34.722088;113.644188,34.722492;113.644188,34.722218;113.644188,34.722626;113.644188,34.723129;113.644188,34.723354;113.644188,34.723667;113.644188,34.723747;113.644188,34.724079;113.644188,34.724400;113.644196,34.724827;113.644196,34.724964;113.644188,34.725647', 'bustimetag': '0', 'start_time': [], 'end_time': [], 'via_num': '4', 'via_stops': [{'name': '长江路行云路站', 'id': '410100013292063', 'location': '113.649734,34.709988'}, {'name': '大学路张魏寨', 'id': '410100013292065', 'location': '113.644104,34.712696'}, {'name': '郑州航空工业管理学院', 'id': '410100013292066', 'location': '113.644104,34.716038'}, {'name': '大学路航海路', 'id': '410100013292067', 'location': '113.644188,34.722492'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.644180,34.725647', 'destination': '113.640182,34.724045', 'distance': '533', 'duration': '456', 'steps': [{'instruction': '沿大学中路步行89米右转', 'road': '大学中路', 'distance': '89', 'duration': [], 'polyline': '113.644180,34.725647;113.644180,34.724838', 'action': '右转', 'assistant_action': []}, {'instruction': '沿政通路步行347米左转', 'road': '政通路', 'distance': '347', 'duration': [], 'polyline': '113.644180,34.724834;113.644096,34.724834;113.643959,34.724834;113.643845,34.724834;113.642929,34.724827;113.641594,34.724827;113.640976,34.724827;113.640381,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '步行97米', 'road': [], 'distance': '97', 'duration': [], 'polyline': '113.640381,34.724827;113.640373,34.724678;113.640358,34.724167;113.640335,34.724087;113.640289,34.724068;113.640221,34.724045;113.640182,34.724045', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '1.0', 'duration': '2774', 'nightflag': '0', 'walking_distance': '1704', 'distance': '4022', 'missed': '0', 'segments': [{'taxi': [], 'walking': {'origin': '113.664215,34.710854', 'destination': '113.657219,34.711407', 'distance': '1002', 'duration': '858', 'steps': [{'instruction': '步行95米右转', 'road': [], 'distance': '95', 'duration': [], 'polyline': '113.664215,34.710854;113.664780,34.710842;113.664841,34.710777;113.664841,34.710716;113.664864,34.710678;113.664940,34.710655;113.665123,34.710651', 'action': '右转', 'assistant_action': []}, {'instruction': '沿碧云路步行52米右转', 'road': '碧云路', 'distance': '52', 'duration': [], 'polyline': '113.665123,34.710648;113.665115,34.710175', 'action': '右转', 'assistant_action': []}, {'instruction': '步行714米右转', 'road': [], 'distance': '714', 'duration': [], 'polyline': '113.665115,34.710171;113.663498,34.710171;113.662758,34.710171;113.662285,34.710159;113.662231,34.710159;113.661774,34.710163;113.661278,34.710163;113.660507,34.710155;113.660149,34.710155;113.658524,34.710144;113.658463,34.710144;113.657265,34.710125', 'action': '右转', 'assistant_action': []}, {'instruction': '沿京广南路步行141米左转', 'road': '京广南路', 'distance': '141', 'duration': [], 'polyline': '113.657257,34.710121;113.657227,34.710838;113.657219,34.711124;113.657227,34.711407', 'action': '左转', 'assistant_action': []}, {'instruction': '步行1米到达市第六人民医院', 'road': [], 'distance': '1', 'duration': [], 'polyline': '113.657227,34.711407;113.657219,34.711407', 'action': [], 'assistant_action': '到达市第六人民医院'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '市第六人民医院', 'id': '410100013744007', 'location': '113.657219,34.711563'}, 'arrival_stop': {'name': '大学路航海路', 'id': '410100013744010', 'location': '113.644188,34.722466'}, 'name': '906路(佛岗村公交站--国基路公交站)', 'id': '410100013744', 'type': '普通公交线路', 'distance': '2318', 'duration': '1314', 'polyline': '113.657219,34.711563;113.657219,34.711914;113.657227,34.713055;113.657227,34.714146;113.657219,34.714573;113.657211,34.714954;113.657211,34.715687;113.657211,34.716057;113.657211,34.716465;113.657211,34.716797;113.657211,34.717106;113.657211,34.717449;113.657219,34.718830;113.657227,34.720146;113.656960,34.720287;113.656288,34.720257;113.656075,34.720261;113.655670,34.720322;113.655319,34.720406;113.654755,34.720478;113.654625,34.720497;113.654007,34.720490;113.653694,34.720486;113.653488,34.720486;113.653076,34.720486;113.652000,34.720486;113.650551,34.720486;113.649666,34.720486;113.649246,34.720482;113.648323,34.720474;113.646835,34.720516;113.644073,34.720577;113.644180,34.720692;113.644188,34.720943;113.644188,34.721111;113.644196,34.721848;113.644196,34.722088;113.644188,34.722466', 'bustimetag': '0', 'start_time': '0600', 'end_time': '2100', 'via_num': '2', 'via_stops': [{'name': '汽车客运总站', 'id': '410100013744008', 'location': '113.654755,34.720478'}, {'name': '航海路老代庄', 'id': '410100013744009', 'location': '113.649246,34.720482'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.644188,34.722488', 'destination': '113.640182,34.724045', 'distance': '702', 'duration': '601', 'steps': [{'instruction': '沿大学中路步行258米左转', 'road': '大学中路', 'distance': '258', 'duration': [], 'polyline': '113.644188,34.722488;113.644188,34.722626;113.644188,34.723122;113.644188,34.723354;113.644180,34.723663;113.644180,34.723759;113.644180,34.724400;113.644180,34.724834', 'action': '左转', 'assistant_action': []}, {'instruction': '沿政通路步行347米左转', 'road': '政通路', 'distance': '347', 'duration': [], 'polyline': '113.644180,34.724834;113.644096,34.724834;113.643959,34.724834;113.643845,34.724834;113.642929,34.724827;113.641594,34.724827;113.640976,34.724827;113.640381,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '步行97米', 'road': [], 'distance': '97', 'duration': [], 'polyline': '113.640381,34.724827;113.640373,34.724678;113.640358,34.724167;113.640335,34.724087;113.640289,34.724068;113.640221,34.724045;113.640182,34.724045', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '2.0', 'duration': '2372', 'nightflag': '0', 'walking_distance': '2355', 'distance': '4420', 'missed': '0', 'emergency': {'linetype': '2', 'eventTagDesc': '提示', 'ldescription': '地铁5号线内环自2月1日起，该线路郑州东站E口、L口、M口；中原福塔B口；京广南路C口、D口封闭，恢复时间另行通告', 'ssstatus': [], 'ssdescription': [], 'esstatus': [], 'esdescription': [], 'busid': '900000058317', 'busname': '地铁5号线内环'}, 'segments': [{'taxi': [], 'walking': {'origin': '113.664215,34.710854', 'destination': '113.667892,34.720428', 'distance': '1413', 'duration': '1211', 'steps': [{'instruction': '步行95米左转', 'road': [], 'distance': '95', 'duration': [], 'polyline': '113.664215,34.710854;113.664780,34.710842;113.664841,34.710777;113.664841,34.710716;113.664864,34.710678;113.664940,34.710655;113.665123,34.710651', 'action': '左转', 'assistant_action': []}, {'instruction': '沿碧云路步行135米右转', 'road': '碧云路', 'distance': '135', 'duration': [], 'polyline': '113.665123,34.710648;113.665154,34.711514;113.665154,34.711872', 'action': '右转', 'assistant_action': []}, {'instruction': '沿红云路步行211米左转', 'road': '红云路', 'distance': '211', 'duration': [], 'polyline': '113.665154,34.711872;113.665253,34.711876;113.666389,34.711857;113.667458,34.711838', 'action': '左转', 'assistant_action': []}, {'instruction': '沿祥云路步行893米左转', 'road': '祥云路', 'distance': '893', 'duration': [], 'polyline': '113.667458,34.711830;113.667496,34.712784;113.667549,34.713692;113.667671,34.714348;113.667709,34.715008;113.667740,34.715534;113.667763,34.715942;113.667770,34.716076;113.667793,34.716492;113.667801,34.716606;113.667831,34.717239;113.667953,34.718124;113.667953,34.718182;113.668015,34.718868;113.668045,34.719284;113.668053,34.719517;113.668076,34.719936', 'action': '左转', 'assistant_action': []}, {'instruction': '步行79米到达冯庄', 'road': [], 'distance': '79', 'duration': [], 'polyline': '113.668076,34.719936;113.667847,34.719940;113.667847,34.720428;113.667892,34.720428', 'action': [], 'assistant_action': '到达冯庄'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '冯庄', 'id': '900000058317024', 'location': '113.667892,34.720432'}, 'arrival_stop': {'name': '市第二人民医院', 'id': '900000058317026', 'location': '113.644129,34.720446'}, 'name': '地铁5号线内环(月季公园--月季公园)', 'id': '900000058317', 'type': '地铁线路', 'distance': '2065', 'duration': '354', 'polyline': '113.667892,34.720432;113.666535,34.720433;113.665191,34.720420;113.662962,34.720415;113.660502,34.720418;113.659939,34.720419;113.659075,34.720377;113.658936,34.720362;113.658739,34.720339;113.658348,34.720285;113.657801,34.720228;113.656817,34.720213;113.655846,34.720222;113.655717,34.720230;113.655568,34.720251;113.655390,34.720287;113.655198,34.720333;113.655099,34.720356;113.654993,34.720373;113.654859,34.720387;113.654703,34.720394;113.654404,34.720404;113.653858,34.720401;113.651679,34.720393;113.648297,34.720389;113.646282,34.720434;113.646073,34.720438;113.645421,34.720442;113.644129,34.720446', 'bustimetag': '0', 'start_time': '0600', 'end_time': '2200', 'via_num': '1', 'via_stops': [{'name': '京广南路', 'id': '900000058317025', 'location': '113.656817,34.720213'}]}]}, 'entrance': {'name': 'B口', 'location': '113.667839,34.719936'}, 'exit': {'name': 'C口', 'location': '113.643112,34.720585'}, 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.644127,34.720432', 'destination': '113.640182,34.724045', 'distance': '942', 'duration': '807', 'steps': [{'instruction': '步行113米右转', 'road': [], 'distance': '113', 'duration': [], 'polyline': '113.644127,34.720432;113.643402,34.720440;113.643356,34.720444;113.643356,34.720585;113.643120,34.720585;113.643120,34.720551', 'action': '右转', 'assistant_action': []}, {'instruction': '沿航海中路步行197米右转', 'road': '航海中路', 'distance': '197', 'duration': [], 'polyline': '113.643112,34.720547;113.642899,34.720547;113.642227,34.720509;113.641922,34.720470;113.640961,34.720470', 'action': '右转', 'assistant_action': []}, {'instruction': '沿人和路步行480米左转', 'road': '人和路', 'distance': '480', 'duration': [], 'polyline': '113.640961,34.720463;113.640976,34.721245;113.640991,34.721867;113.640991,34.722153;113.640999,34.722618;113.640991,34.722660;113.640984,34.722878;113.640976,34.723465;113.640976,34.723782;113.640976,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '沿政通路步行55米左转', 'road': '政通路', 'distance': '55', 'duration': [], 'polyline': '113.640976,34.724827;113.640381,34.724827', 'action': '左转', 'assistant_action': []}, {'instruction': '步行97米', 'road': [], 'distance': '97', 'duration': [], 'polyline': '113.640381,34.724827;113.640373,34.724678;113.640358,34.724167;113.640335,34.724087;113.640289,34.724068;113.640221,34.724045;113.640182,34.724045', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>5</td>\n",
       "      <td>113.664188,34.710717</td>\n",
       "      <td>113.640179,34.723930</td>\n",
       "      <td>3737</td>\n",
       "      <td>10.6055</td>\n",
       "      <td>[{'cost': '1.0', 'duration': '2329', 'nightfla...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     5  113.664188,34.710717  113.640179,34.723930   \n",
       "\n",
       "  route.distance route.taxi_cost  \\\n",
       "0           3737         10.6055   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': '1.0', 'duration': '2329', 'nightfla...  "
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "六十二中_二七塔 = integrated(六十二中_location,二七塔_location,city='郑州',extensions='all')\n",
    "print(六十二中_二七塔)\n",
    "df_bus = pd.json_normalize(六十二中_二七塔)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.664215,34.710854</td>\n",
       "      <td>113.657219,34.711407</td>\n",
       "      <td>1002</td>\n",
       "      <td>858</td>\n",
       "      <td>[{'instruction': '步行95米右转', 'road': [], 'dista...</td>\n",
       "      <td>[{'departure_stop': {'name': '市第六人民医院', 'id': ...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.644180,34.725647</td>\n",
       "      <td>113.640182,34.724045</td>\n",
       "      <td>533</td>\n",
       "      <td>456</td>\n",
       "      <td>[{'instruction': '沿大学中路步行89米右转', 'road': '大学中路...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi entrance exit        walking.origin   walking.destination  \\\n",
       "0   []       []   []  113.664215,34.710854  113.657219,34.711407   \n",
       "1   []       []   []  113.644180,34.725647  113.640182,34.724045   \n",
       "\n",
       "  walking.distance walking.duration  \\\n",
       "0             1002              858   \n",
       "1              533              456   \n",
       "\n",
       "                                       walking.steps  \\\n",
       "0  [{'instruction': '步行95米右转', 'road': [], 'dista...   \n",
       "1  [{'instruction': '沿大学中路步行89米右转', 'road': '大学中路...   \n",
       "\n",
       "                                        bus.buslines railway.via_stops  \\\n",
       "0  [{'departure_stop': {'name': '市第六人民医院', 'id': ...                []   \n",
       "1                                                 []                []   \n",
       "\n",
       "  railway.alters railway.spaces  \n",
       "0             []             []  \n",
       "1             []             []  "
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(六十二中_二七塔[\"route\"]['transits'])\n",
    "pd.json_normalize(六十二中_二七塔[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>203路(汽车客运南站--建设路西三环)</td>\n",
       "      <td>410100013395</td>\n",
       "      <td>普通公交线路</td>\n",
       "      <td>2690</td>\n",
       "      <td>1014</td>\n",
       "      <td>113.657219,34.711426;113.657227,34.711502;113....</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3</td>\n",
       "      <td>[{'name': '汽车客运总站', 'id': '410100013395005', '...</td>\n",
       "      <td>市第六人民医院</td>\n",
       "      <td>410100013395004</td>\n",
       "      <td>113.657219,34.711426</td>\n",
       "      <td>大学路政通路</td>\n",
       "      <td>410100013395008</td>\n",
       "      <td>113.644188,34.725620</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                   name            id    type distance duration  \\\n",
       "0  203路(汽车客运南站--建设路西三环)  410100013395  普通公交线路     2690     1014   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  113.657219,34.711426;113.657227,34.711502;113....          0         []   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0       []       3  [{'name': '汽车客运总站', 'id': '410100013395005', '...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0             市第六人民医院   410100013395004    113.657219,34.711426   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0            大学路政通路  410100013395008  113.644188,34.725620  "
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_bus_基本信息 = pd.json_normalize(六十二中_二七塔[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_基本信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_203路公交车</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>汽车客运总站</td>\n",
       "      <td>410100013395005</td>\n",
       "      <td>113.654930,34.720463</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>老代庄</td>\n",
       "      <td>410100013395006</td>\n",
       "      <td>113.649200,34.720482</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>大学路航海路</td>\n",
       "      <td>410100013395007</td>\n",
       "      <td>113.644188,34.722565</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  _203路公交车               id              location\n",
       "0   汽车客运总站  410100013395005  113.654930,34.720463\n",
       "1      老代庄  410100013395006  113.649200,34.720482\n",
       "2   大学路航海路  410100013395007  113.644188,34.722565"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_203路公交车 = pd.json_normalize(六十二中_二七塔[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"_203路公交车\"})\n",
    "_203路公交车"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 驾车路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 173,
   "metadata": {},
   "outputs": [],
   "source": [
    "def driving(origin,destination,sig=None)->dict:\n",
    "    url = \"https://restapi.amap.com/v3/direction/driving?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_luo,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"sig\":sig,\n",
    "        \"strategy\":2,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 174,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.640179,34.723930',\n",
       "  'destination': '113.664188,34.710717',\n",
       "  'taxi_cost': '10',\n",
       "  'paths': [{'distance': '3964',\n",
       "    'duration': '765',\n",
       "    'strategy': '距离最短',\n",
       "    'tolls': '0',\n",
       "    'toll_distance': '0',\n",
       "    'steps': [{'instruction': '向东北行驶24米左转',\n",
       "      'orientation': '东北',\n",
       "      'distance': '24',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '23',\n",
       "      'polyline': '113.640175,34.724041;113.640205,34.724041;113.640297,34.724064;113.640335,34.724083;113.640358,34.724159',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '24',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.640175,34.724041;113.640205,34.724041;113.640297,34.724064;113.640335,34.724083;113.640358,34.724159'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '向北行驶73米右转',\n",
       "      'orientation': '北',\n",
       "      'distance': '73',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '32',\n",
       "      'polyline': '113.640358,34.724159;113.640373,34.724674;113.640373,34.724827',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '57',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.640358,34.724159;113.640373,34.724674'},\n",
       "       {'lcode': [],\n",
       "        'distance': '16',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.640373,34.724674;113.640373,34.724827'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '沿政通路向东行驶316米右转进入主路',\n",
       "      'orientation': '东',\n",
       "      'road': '政通路',\n",
       "      'distance': '316',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '95',\n",
       "      'polyline': '113.640373,34.724827;113.640976,34.724827;113.641594,34.724827;113.642578,34.724819;113.642921,34.724819;113.643837,34.724831',\n",
       "      'action': '右转',\n",
       "      'assistant_action': '进入主路',\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '55',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.640373,34.724827;113.640976,34.724827'},\n",
       "       {'lcode': [],\n",
       "        'distance': '56',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.640976,34.724827;113.641594,34.724827'},\n",
       "       {'lcode': [],\n",
       "        'distance': '121',\n",
       "        'status': '缓行',\n",
       "        'polyline': '113.641594,34.724827;113.642578,34.724819;113.642921,34.724819'},\n",
       "       {'lcode': [],\n",
       "        'distance': '84',\n",
       "        'status': '缓行',\n",
       "        'polyline': '113.642921,34.724819;113.643837,34.724831'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '沿大学中路向南行驶469米左转',\n",
       "      'orientation': '南',\n",
       "      'road': '大学中路',\n",
       "      'distance': '469',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '108',\n",
       "      'polyline': '113.643959,34.724831;113.643967,34.723881;113.643967,34.723351;113.643967,34.723122;113.643967,34.722191;113.643967,34.722084;113.643967,34.721992;113.643982,34.721092;113.643967,34.720573',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '105',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643959,34.724831;113.643967,34.723881'},\n",
       "       {'lcode': [],\n",
       "        'distance': '59',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643967,34.723881;113.643967,34.723351'},\n",
       "       {'lcode': [],\n",
       "        'distance': '25',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643967,34.723351;113.643967,34.723122'},\n",
       "       {'lcode': [],\n",
       "        'distance': '102',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643967,34.723122;113.643967,34.722191'},\n",
       "       {'lcode': [],\n",
       "        'distance': '21',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643967,34.722191;113.643967,34.722084;113.643967,34.721992'},\n",
       "       {'lcode': [],\n",
       "        'distance': '100',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643967,34.721992;113.643982,34.721092'},\n",
       "       {'lcode': [],\n",
       "        'distance': '57',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.643982,34.721092;113.643967,34.720573'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '沿航海中路向东行驶1.9千米右转',\n",
       "      'orientation': '东',\n",
       "      'road': '航海中路',\n",
       "      'distance': '1917',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '270',\n",
       "      'polyline': '113.644073,34.72039;113.644836,34.720417;113.646835,34.72036;113.648277,34.720299;113.648842,34.720299;113.649475,34.720299;113.650528,34.720303;113.651772,34.72031;113.652657,34.72031;113.653488,34.720303;113.653709,34.72031;113.654007,34.72031;113.654747,34.72031;113.655304,34.720299;113.655846,34.720303;113.656075,34.720303;113.656975,34.720303;113.657227,34.720303;113.657753,34.720314;113.658745,34.720325;113.660355,34.720322;113.661255,34.720325;113.662392,34.720325;113.664551,34.720325;113.665092,34.720325',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '254',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.644073,34.72039;113.644836,34.720417;113.646835,34.72036'},\n",
       "       {'lcode': [],\n",
       "        'distance': '131',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.646835,34.72036;113.648277,34.720299'},\n",
       "       {'lcode': [],\n",
       "        'distance': '52',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.648277,34.720299;113.648842,34.720299'},\n",
       "       {'lcode': [],\n",
       "        'distance': '58',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.648842,34.720299;113.649475,34.720299'},\n",
       "       {'lcode': [],\n",
       "        'distance': '95',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.649475,34.720299;113.650528,34.720303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '114',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.650528,34.720303;113.651772,34.72031'},\n",
       "       {'lcode': [],\n",
       "        'distance': '81',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.651772,34.72031;113.652657,34.72031'},\n",
       "       {'lcode': [],\n",
       "        'distance': '74',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.652657,34.72031;113.653488,34.720303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '20',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.653488,34.720303;113.653709,34.72031'},\n",
       "       {'lcode': [],\n",
       "        'distance': '28',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.653709,34.72031;113.654007,34.72031'},\n",
       "       {'lcode': [],\n",
       "        'distance': '67',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.654007,34.72031;113.654747,34.72031'},\n",
       "       {'lcode': [],\n",
       "        'distance': '51',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.654747,34.72031;113.655304,34.720299'},\n",
       "       {'lcode': [],\n",
       "        'distance': '49',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.655304,34.720299;113.655846,34.720303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '20',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.655846,34.720303;113.656075,34.720303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '105',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.656075,34.720303;113.656975,34.720303;113.657227,34.720303'},\n",
       "       {'lcode': [],\n",
       "        'distance': '48',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.657227,34.720303;113.657753,34.720314'},\n",
       "       {'lcode': [],\n",
       "        'distance': '90',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.657753,34.720314;113.658745,34.720325'},\n",
       "       {'lcode': [],\n",
       "        'distance': '147',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.658745,34.720325;113.660355,34.720322'},\n",
       "       {'lcode': [],\n",
       "        'distance': '82',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.660355,34.720322;113.661255,34.720325'},\n",
       "       {'lcode': [],\n",
       "        'distance': '104',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.661255,34.720325;113.662392,34.720325'},\n",
       "       {'lcode': [],\n",
       "        'distance': '247',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.662392,34.720325;113.664551,34.720325;113.665092,34.720325'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '沿碧云路向南行驶1.1千米右转',\n",
       "      'orientation': '南',\n",
       "      'road': '碧云路',\n",
       "      'distance': '1069',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '203',\n",
       "      'polyline': '113.665092,34.720325;113.665092,34.719654;113.6651,34.717377;113.6651,34.717144;113.6651,34.716797;113.665108,34.716106;113.665138,34.715237;113.665138,34.714645;113.665146,34.714306;113.665146,34.713852;113.665146,34.713486;113.665154,34.713078;113.665154,34.711872;113.665146,34.711517;113.665123,34.710648',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '74',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665092,34.720325;113.665092,34.719654'},\n",
       "       {'lcode': [],\n",
       "        'distance': '252',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665092,34.719654;113.6651,34.717377'},\n",
       "       {'lcode': [],\n",
       "        'distance': '26',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.6651,34.717377;113.6651,34.717144'},\n",
       "       {'lcode': [],\n",
       "        'distance': '114',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.6651,34.717144;113.6651,34.716797;113.665108,34.716106'},\n",
       "       {'lcode': [],\n",
       "        'distance': '97',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665108,34.716106;113.665138,34.715237'},\n",
       "       {'lcode': [],\n",
       "        'distance': '65',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665138,34.715237;113.665138,34.714645'},\n",
       "       {'lcode': [],\n",
       "        'distance': '37',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665138,34.714645;113.665146,34.714306'},\n",
       "       {'lcode': [],\n",
       "        'distance': '49',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665146,34.714306;113.665146,34.713852'},\n",
       "       {'lcode': [],\n",
       "        'distance': '41',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665146,34.713852;113.665146,34.713486'},\n",
       "       {'lcode': [],\n",
       "        'distance': '45',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665146,34.713486;113.665154,34.713078'},\n",
       "       {'lcode': [],\n",
       "        'distance': '134',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665154,34.713078;113.665154,34.711872'},\n",
       "       {'lcode': [],\n",
       "        'distance': '39',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665154,34.711872;113.665146,34.711517'},\n",
       "       {'lcode': [],\n",
       "        'distance': '96',\n",
       "        'status': '畅通',\n",
       "        'polyline': '113.665146,34.711517;113.665123,34.710648'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]},\n",
       "     {'instruction': '向西行驶96米到达目的地',\n",
       "      'orientation': '西',\n",
       "      'distance': '96',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '34',\n",
       "      'polyline': '113.665123,34.710648;113.66494,34.710651;113.664864,34.710674;113.664833,34.710712;113.664833,34.710773;113.66478,34.710835;113.664551,34.710846;113.664215,34.710857',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'tmcs': [{'lcode': [],\n",
       "        'distance': '16',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.665123,34.710648;113.66494,34.710651'},\n",
       "       {'lcode': [],\n",
       "        'distance': '80',\n",
       "        'status': '未知',\n",
       "        'polyline': '113.66494,34.710651;113.664864,34.710674;113.664833,34.710712;113.664833,34.710773;113.66478,34.710835;113.664551,34.710846;113.664215,34.710857'}],\n",
       "      'cities': [{'name': '郑州市',\n",
       "        'citycode': '0371',\n",
       "        'adcode': '410100',\n",
       "        'districts': [{'name': '二七区', 'adcode': '410103'}]}]}],\n",
       "    'restriction': '0',\n",
       "    'traffic_lights': '9'}]}}"
      ]
     },
     "execution_count": 174,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "六十二中 = geocode('河南省郑州市第六十二中学') \n",
    "六十二中_location = 六十二中['geocodes'][0]['location'] \n",
    "二七塔_location = 二七塔['geocodes'][0]['location'] \n",
    "二七塔_六十二中 = driving(二七塔_location,六十二中_location) \n",
    "二七塔_六十二中"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 175,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>distance</th>\n",
       "      <th>tolls</th>\n",
       "      <th>toll_distance</th>\n",
       "      <th>toll_road</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>tmcs</th>\n",
       "      <th>cities</th>\n",
       "      <th>road</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向东北行驶24米左转</td>\n",
       "      <td>东北</td>\n",
       "      <td>24</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>23</td>\n",
       "      <td>113.640175,34.724041;113.640205,34.724041;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '24', 'status': '未知...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向北行驶73米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>73</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>32</td>\n",
       "      <td>113.640358,34.724159;113.640373,34.724674;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '57', 'status': '未知...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿政通路向东行驶316米右转进入主路</td>\n",
       "      <td>东</td>\n",
       "      <td>316</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>95</td>\n",
       "      <td>113.640373,34.724827;113.640976,34.724827;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>进入主路</td>\n",
       "      <td>[{'lcode': [], 'distance': '55', 'status': '畅通...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>政通路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿大学中路向南行驶469米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>469</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>108</td>\n",
       "      <td>113.643959,34.724831;113.643967,34.723881;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '105', 'status': '畅...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>大学中路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿航海中路向东行驶1.9千米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>1917</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>270</td>\n",
       "      <td>113.644073,34.72039;113.644836,34.720417;113.6...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '254', 'status': '畅...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>航海中路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>沿碧云路向南行驶1.1千米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>1069</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>203</td>\n",
       "      <td>113.665092,34.720325;113.665092,34.719654;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'lcode': [], 'distance': '74', 'status': '畅通...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>碧云路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向西行驶96米到达目的地</td>\n",
       "      <td>西</td>\n",
       "      <td>96</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>34</td>\n",
       "      <td>113.665123,34.710648;113.66494,34.710651;113.6...</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>[{'lcode': [], 'distance': '16', 'status': '未知...</td>\n",
       "      <td>[{'name': '郑州市', 'citycode': '0371', 'adcode':...</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "          instruction orientation distance tolls toll_distance toll_road  \\\n",
       "0          向东北行驶24米左转          东北       24     0             0        []   \n",
       "1           向北行驶73米右转           北       73     0             0        []   \n",
       "2  沿政通路向东行驶316米右转进入主路           东      316     0             0        []   \n",
       "3     沿大学中路向南行驶469米左转           南      469     0             0        []   \n",
       "4    沿航海中路向东行驶1.9千米右转           东     1917     0             0        []   \n",
       "5     沿碧云路向南行驶1.1千米右转           南     1069     0             0        []   \n",
       "6        向西行驶96米到达目的地           西       96     0             0        []   \n",
       "\n",
       "  duration                                           polyline action  \\\n",
       "0       23  113.640175,34.724041;113.640205,34.724041;113....     左转   \n",
       "1       32  113.640358,34.724159;113.640373,34.724674;113....     右转   \n",
       "2       95  113.640373,34.724827;113.640976,34.724827;113....     右转   \n",
       "3      108  113.643959,34.724831;113.643967,34.723881;113....     左转   \n",
       "4      270  113.644073,34.72039;113.644836,34.720417;113.6...     右转   \n",
       "5      203  113.665092,34.720325;113.665092,34.719654;113....     右转   \n",
       "6       34  113.665123,34.710648;113.66494,34.710651;113.6...     []   \n",
       "\n",
       "  assistant_action                                               tmcs  \\\n",
       "0               []  [{'lcode': [], 'distance': '24', 'status': '未知...   \n",
       "1               []  [{'lcode': [], 'distance': '57', 'status': '未知...   \n",
       "2             进入主路  [{'lcode': [], 'distance': '55', 'status': '畅通...   \n",
       "3               []  [{'lcode': [], 'distance': '105', 'status': '畅...   \n",
       "4               []  [{'lcode': [], 'distance': '254', 'status': '畅...   \n",
       "5               []  [{'lcode': [], 'distance': '74', 'status': '畅通...   \n",
       "6            到达目的地  [{'lcode': [], 'distance': '16', 'status': '未知...   \n",
       "\n",
       "                                              cities  road  \n",
       "0  [{'name': '郑州市', 'citycode': '0371', 'adcode':...   NaN  \n",
       "1  [{'name': '郑州市', 'citycode': '0371', 'adcode':...   NaN  \n",
       "2  [{'name': '郑州市', 'citycode': '0371', 'adcode':...   政通路  \n",
       "3  [{'name': '郑州市', 'citycode': '0371', 'adcode':...  大学中路  \n",
       "4  [{'name': '郑州市', 'citycode': '0371', 'adcode':...  航海中路  \n",
       "5  [{'name': '郑州市', 'citycode': '0371', 'adcode':...   碧云路  \n",
       "6  [{'name': '郑州市', 'citycode': '0371', 'adcode':...   NaN  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0            向东北行驶24米左转\n",
       "1             向北行驶73米右转\n",
       "2    沿政通路向东行驶316米右转进入主路\n",
       "3       沿大学中路向南行驶469米左转\n",
       "4      沿航海中路向东行驶1.9千米右转\n",
       "5       沿碧云路向南行驶1.1千米右转\n",
       "6          向西行驶96米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 175,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_js = pd.json_normalize(二七塔_六十二中[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_js)\n",
    "df_js[\"instruction\"]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 行政区域查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 169,
   "metadata": {},
   "outputs": [],
   "source": [
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'keywords':'410100',\n",
    "        'subdistrict':2,\n",
    "        'page':1,\n",
    "        'offset':20,\n",
    "        'extensions':'all',\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 170,
   "metadata": {},
   "outputs": [],
   "source": [
    "行政区域 = district(keywords='河南',extensions='all',subdistrict=2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 171,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0371</td>\n",
       "      <td>410185</td>\n",
       "      <td>登封市</td>\n",
       "      <td>113.037768,34.459939</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410185', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0371</td>\n",
       "      <td>410108</td>\n",
       "      <td>惠济区</td>\n",
       "      <td>113.61836,34.828591</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410108', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0371</td>\n",
       "      <td>410105</td>\n",
       "      <td>金水区</td>\n",
       "      <td>113.686037,34.775838</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410105', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0371</td>\n",
       "      <td>410102</td>\n",
       "      <td>中原区</td>\n",
       "      <td>113.611576,34.748286</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410102', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0371</td>\n",
       "      <td>410183</td>\n",
       "      <td>新密市</td>\n",
       "      <td>113.380616,34.537846</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410183', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0371</td>\n",
       "      <td>410184</td>\n",
       "      <td>新郑市</td>\n",
       "      <td>113.73967,34.394219</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410184', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0371</td>\n",
       "      <td>410122</td>\n",
       "      <td>中牟县</td>\n",
       "      <td>114.022521,34.721976</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410122', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0371</td>\n",
       "      <td>410106</td>\n",
       "      <td>上街区</td>\n",
       "      <td>113.298282,34.808689</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410106', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0371</td>\n",
       "      <td>410182</td>\n",
       "      <td>荥阳市</td>\n",
       "      <td>113.391523,34.789077</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410182', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0371</td>\n",
       "      <td>410181</td>\n",
       "      <td>巩义市</td>\n",
       "      <td>112.98283,34.75218</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410181', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0371</td>\n",
       "      <td>410104</td>\n",
       "      <td>管城回族区</td>\n",
       "      <td>113.685313,34.746453</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410104', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0371</td>\n",
       "      <td>410103</td>\n",
       "      <td>二七区</td>\n",
       "      <td>113.645422,34.730936</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0371', 'adcode': '410103', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode   name                center     level  \\\n",
       "0      0371  410185    登封市  113.037768,34.459939  district   \n",
       "1      0371  410108    惠济区   113.61836,34.828591  district   \n",
       "2      0371  410105    金水区  113.686037,34.775838  district   \n",
       "3      0371  410102    中原区  113.611576,34.748286  district   \n",
       "4      0371  410183    新密市  113.380616,34.537846  district   \n",
       "5      0371  410184    新郑市   113.73967,34.394219  district   \n",
       "6      0371  410122    中牟县  114.022521,34.721976  district   \n",
       "7      0371  410106    上街区  113.298282,34.808689  district   \n",
       "8      0371  410182    荥阳市  113.391523,34.789077  district   \n",
       "9      0371  410181    巩义市    112.98283,34.75218  district   \n",
       "10     0371  410104  管城回族区  113.685313,34.746453  district   \n",
       "11     0371  410103    二七区  113.645422,34.730936  district   \n",
       "\n",
       "                                            districts  \n",
       "0   [{'citycode': '0371', 'adcode': '410185', 'nam...  \n",
       "1   [{'citycode': '0371', 'adcode': '410108', 'nam...  \n",
       "2   [{'citycode': '0371', 'adcode': '410105', 'nam...  \n",
       "3   [{'citycode': '0371', 'adcode': '410102', 'nam...  \n",
       "4   [{'citycode': '0371', 'adcode': '410183', 'nam...  \n",
       "5   [{'citycode': '0371', 'adcode': '410184', 'nam...  \n",
       "6   [{'citycode': '0371', 'adcode': '410122', 'nam...  \n",
       "7   [{'citycode': '0371', 'adcode': '410106', 'nam...  \n",
       "8   [{'citycode': '0371', 'adcode': '410182', 'nam...  \n",
       "9   [{'citycode': '0371', 'adcode': '410181', 'nam...  \n",
       "10  [{'citycode': '0371', 'adcode': '410104', 'nam...  \n",
       "11  [{'citycode': '0371', 'adcode': '410103', 'nam...  "
      ]
     },
     "execution_count": 171,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "df_行政区域_1级"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 搜索POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 关键字搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'keywords':'郑州西亚斯学院',\n",
    "        'types':'科教文化服务',\n",
    "        'city':'郑州',\n",
    "        'citylimit':True,\n",
    "        'children':1,\n",
    "        'page':page,\n",
    "        'extensions':'all',\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '69',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B01730JLX0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州西亚斯学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.765389,34.401713',\n",
       "   'tel': '0371-62600888;0371-62601234',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113468100',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'I49F020047_18178;332;979',\n",
       "   'entr_location': '113.76805,34.395796',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '3',\n",
       "   'timestamp': '2020-04-20 17:33:27',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B01730JQAG ',\n",
       "     'name': ' 郑州西亚斯学院(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.768039,34.395854',\n",
       "     'address': ' 人民路168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '},\n",
       "    {'id': ' B01730K39I ',\n",
       "     'name': ' 郑州西亚斯学院(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.764359,34.395782',\n",
       "     'address': ' 人民路中段168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFF05KYZ ',\n",
       "     'name': ' 郑州西亚斯学院(南1门) ',\n",
       "     'sname': ' 南1门 ',\n",
       "     'location': '113.766871,34.395662',\n",
       "     'address': ' 人民路168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFJH5KA9 ',\n",
       "     'name': ' 郑州西亚斯学院(北门)(建设中) ',\n",
       "     'sname': ' 北门 ',\n",
       "     'location': '113.764682,34.407285',\n",
       "     'address': '  ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 990000 '},\n",
       "    {'id': ' B0FFHF57OH ',\n",
       "     'name': ' 郑州西亚斯学院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.768371,34.401310',\n",
       "     'address': ' 西亚斯欧洲街 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B017316OSL ',\n",
       "     'name': ' 郑州西亚斯学院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.768206,34.398644',\n",
       "     'address': ' 人民路168号郑州西亚斯学院内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150905 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9fa39fa5d7689e4f8114e21b1f24b3c5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fe94c525d8949f491e8dd686d69d71b3'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6d6cccd03166e738522fb53dc883f752'}]},\n",
       "  {'id': 'B0FFK5A79O',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院护理学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.766756,34.402957',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113468111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-20 14:58:04',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A6CE',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-音乐学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '新烟街道人民路东段168号',\n",
       "   'location': '113.761060,34.397803',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467022',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 17:05:26',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFGK5HLA ',\n",
       "     'name': ' 郑州西亚斯学院音乐学院(东门) ',\n",
       "     'sname': ' 东门 ',\n",
       "     'location': '113.761033,34.398120',\n",
       "     'address': ' 人民路168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991001 '}],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A79N',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院国际教育学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.766752,34.402952',\n",
       "   'tel': '0371-62606666',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113468111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-06 11:16:02',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFGK5NOT ',\n",
       "     'name': ' 郑州西亚斯学院国际教育学院(东门) ',\n",
       "     'sname': ' 东门 ',\n",
       "     'location': '113.766811,34.402951',\n",
       "     'address': ' 人民路东段168号郑州西亚斯学院国际教育学院附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991000 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/292b6d2fb6657cc6850990d5490bf88f'}]},\n",
       "  {'id': 'B0FFK7MR4Q',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院商学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.768026,34.396525',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.768096,34.396008',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-01 12:05:02',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLPAZGW',\n",
       "   'parent': 'B017316OF7',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州大学西亚斯国际学院法学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '郑州大学西亚斯国际学院10号楼',\n",
       "   'location': '113.763570,34.397804',\n",
       "   'tel': '0371-69972150',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467120',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-25 08:55:00',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIBCHP3',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-学务处',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '人民东路168号郑州西亚斯学院',\n",
       "   'location': '113.764368,34.395700',\n",
       "   'tel': '0371-69972571',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467110',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-02-18 11:30:40',\n",
       "   'alias': '郑州大学西亚斯国际学院-学务处',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIK3IT6',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院法学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '郑州西亚斯学院10号楼',\n",
       "   'location': '113.763578,34.397809',\n",
       "   'tel': '0371-69972150',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467120',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-07 18:27:13',\n",
       "   'alias': '郑州大学西亚斯国际学院法学院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A79M',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院体育学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '西亚斯欧洲街',\n",
       "   'location': '113.768089,34.402938',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113468111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.767883,34.402917',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-09 18:00:17',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFGK5NCH ',\n",
       "     'name': ' 郑州西亚斯学院体育学院(西门) ',\n",
       "     'sname': ' 西门 ',\n",
       "     'location': '113.768040,34.402897',\n",
       "     'address': ' 人民路168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991001 '}],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHK4X0Z',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-图书馆',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;图书馆;图书馆',\n",
       "   'typecode': '140500',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.764574,34.401567',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113468100',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.764339,34.402295',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-23 19:03:05',\n",
       "   'alias': '郑州大学西亚斯国际学院图书馆',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/49203924-b4f1-406c-b345-384df0b4ff02.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/cfae564d-f85b-45ee-999f-e033b56fc737.jpg'}]},\n",
       "  {'id': 'B0FFI11PDZ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州西亚斯学院-育美教育',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;培训机构;培训机构',\n",
       "   'typecode': '141400',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路与西亚斯欧洲街交叉口东100米',\n",
       "   'location': '113.767807,34.395783',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'I49F020047_18783',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-01-07 13:18:54',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLAMP0Y',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-外教楼',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路168号',\n",
       "   'location': '113.766054,34.396713',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467110',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-24 15:56:19',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFGZ3WM',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-电子信息工程学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路与民苑三街交叉口北200米',\n",
       "   'location': '113.763358,34.398675',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467120',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 12:24:51',\n",
       "   'alias': '郑州大学西亚斯国际学院-电子信息工程学院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIZPLP2',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-10号教学楼',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.763666,34.397774',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467120',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-03 16:50:04',\n",
       "   'alias': '郑州大学西亚斯国际学院-10号教学楼',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A79L',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院行政楼',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;学校',\n",
       "   'typecode': '141200',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路与民苑三街交叉口西北100米',\n",
       "   'location': '113.764422,34.395955',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467110',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.764334,34.396907',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 15:23:44',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIIOD1F',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院-1号教学楼',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所',\n",
       "   'typecode': '140000',\n",
       "   'biz_type': [],\n",
       "   'address': '郑州西亚斯学院1号教学楼',\n",
       "   'location': '113.764988,34.397158',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467110',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-09 17:50:16',\n",
       "   'alias': '郑州大学西亚斯国际学院-1号教学楼',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A9GD',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院创业教育学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路与西亚斯欧洲街交叉口北50米西亚斯花园酒店',\n",
       "   'location': '113.766935,34.395895',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-18 20:59:22',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK5A79K',\n",
       "   'parent': 'B01730JLX0',\n",
       "   'childtype': '309',\n",
       "   'name': '郑州西亚斯学院外语学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路东段168号',\n",
       "   'location': '113.767832,34.397036',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467111',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 16:18:26',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLK3DMW',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州西亚斯学院-小妖精',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;培训机构;培训机构',\n",
       "   'typecode': '141400',\n",
       "   'biz_type': [],\n",
       "   'address': '西亚斯国际学校',\n",
       "   'location': '113.761650,34.398122',\n",
       "   'tel': '18838271482',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467022',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-13 11:43:17',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cc2ad743d87ac8db7ea0b5335423d435'}]},\n",
       "  {'id': 'B0FFH97ZGR',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州西亚斯国际学院-大学帮艺校',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;培训机构;培训机构',\n",
       "   'typecode': '141400',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路与渔公二街交叉口西100米',\n",
       "   'location': '113.762766,34.395755',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '410000',\n",
       "   'pname': '河南省',\n",
       "   'citycode': '0371',\n",
       "   'cityname': '郑州市',\n",
       "   'adcode': '410184',\n",
       "   'adname': '新郑市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5113467110',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'I49F020047_3424',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-17 12:32:56',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3e75827e42b06710b45aa1ecf0c31348'}]}]}"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "西亚斯 = place_text('大学','高等院校',city=\"郑州市\",children=1,extensions='all')\n",
    "西亚斯"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.765389,34.401713</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B01730JQAG ', 'name': ' 郑州西亚斯学院(南门) ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFK5A79O</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院护理学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.766756,34.402957</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFK5A6CE</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-音乐学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>新烟街道人民路东段168号</td>\n",
       "      <td>113.761060,34.397803</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGK5HLA ', 'name': ' 郑州西亚斯学院音乐学院(...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFK5A79N</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院国际教育学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.766752,34.402952</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGK5NOT ', 'name': ' 郑州西亚斯学院国际教育学...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFK7MR4Q</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院商学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.768026,34.396525</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFLPAZGW</td>\n",
       "      <td>B017316OF7</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州大学西亚斯国际学院法学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州大学西亚斯国际学院10号楼</td>\n",
       "      <td>113.763570,34.397804</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFIBCHP3</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-学务处</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民东路168号郑州西亚斯学院</td>\n",
       "      <td>113.764368,34.395700</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFIK3IT6</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院法学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯学院10号楼</td>\n",
       "      <td>113.763578,34.397809</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFK5A79M</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院体育学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>西亚斯欧洲街</td>\n",
       "      <td>113.768089,34.402938</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGK5NCH ', 'name': ' 郑州西亚斯学院体育学院(...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFHK4X0Z</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-图书馆</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "      <td>140500</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.764574,34.401567</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://aos-cdn-image.am...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFI11PDZ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯学院-育美教育</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "      <td>141400</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路与西亚斯欧洲街交叉口东100米</td>\n",
       "      <td>113.767807,34.395783</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFLAMP0Y</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-外教楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路168号</td>\n",
       "      <td>113.766054,34.396713</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFFGZ3WM</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-电子信息工程学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路与民苑三街交叉口北200米</td>\n",
       "      <td>113.763358,34.398675</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFIZPLP2</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-10号教学楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.763666,34.397774</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFK5A79L</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院行政楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "      <td>141200</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路与民苑三街交叉口西北100米</td>\n",
       "      <td>113.764422,34.395955</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFIIOD1F</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院-1号教学楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "      <td>140000</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯学院1号教学楼</td>\n",
       "      <td>113.764988,34.397158</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFK5A9GD</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院创业教育学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路与西亚斯欧洲街交叉口北50米西亚斯花园酒店</td>\n",
       "      <td>113.766935,34.395895</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFK5A79K</td>\n",
       "      <td>B01730JLX0</td>\n",
       "      <td>309</td>\n",
       "      <td>郑州西亚斯学院外语学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路东段168号</td>\n",
       "      <td>113.767832,34.397036</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFLK3DMW</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯学院-小妖精</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "      <td>141400</td>\n",
       "      <td>[]</td>\n",
       "      <td>西亚斯国际学校</td>\n",
       "      <td>113.761650,34.398122</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFH97ZGR</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州西亚斯国际学院-大学帮艺校</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "      <td>141400</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路与渔公二街交叉口西100米</td>\n",
       "      <td>113.762766,34.395755</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype              name tag  \\\n",
       "0   B01730JLX0          []        []           郑州西亚斯学院  []   \n",
       "1   B0FFK5A79O  B01730JLX0       309       郑州西亚斯学院护理学院  []   \n",
       "2   B0FFK5A6CE  B01730JLX0       309      郑州西亚斯学院-音乐学院  []   \n",
       "3   B0FFK5A79N  B01730JLX0       309     郑州西亚斯学院国际教育学院  []   \n",
       "4   B0FFK7MR4Q  B01730JLX0       309        郑州西亚斯学院商学院  []   \n",
       "5   B0FFLPAZGW  B017316OF7       309    郑州大学西亚斯国际学院法学院  []   \n",
       "6   B0FFIBCHP3  B01730JLX0       309       郑州西亚斯学院-学务处  []   \n",
       "7   B0FFIK3IT6  B01730JLX0       309        郑州西亚斯学院法学院  []   \n",
       "8   B0FFK5A79M  B01730JLX0       309       郑州西亚斯学院体育学院  []   \n",
       "9   B0FFHK4X0Z  B01730JLX0       309       郑州西亚斯学院-图书馆  []   \n",
       "10  B0FFI11PDZ          []        []      郑州西亚斯学院-育美教育  []   \n",
       "11  B0FFLAMP0Y  B01730JLX0       309       郑州西亚斯学院-外教楼  []   \n",
       "12  B0FFFGZ3WM  B01730JLX0       309  郑州西亚斯学院-电子信息工程学院  []   \n",
       "13  B0FFIZPLP2  B01730JLX0       309    郑州西亚斯学院-10号教学楼  []   \n",
       "14  B0FFK5A79L  B01730JLX0       309        郑州西亚斯学院行政楼  []   \n",
       "15  B0FFIIOD1F  B01730JLX0       309     郑州西亚斯学院-1号教学楼  []   \n",
       "16  B0FFK5A9GD  B01730JLX0       309     郑州西亚斯学院创业教育学院  []   \n",
       "17  B0FFK5A79K  B01730JLX0       309       郑州西亚斯学院外语学院  []   \n",
       "18  B0FFLK3DMW          []        []       郑州西亚斯学院-小妖精  []   \n",
       "19  B0FFH97ZGR          []        []   郑州西亚斯国际学院-大学帮艺校  []   \n",
       "\n",
       "                    type typecode biz_type                   address  \\\n",
       "0         科教文化服务;学校;高等院校   141201       []                   人民路168号   \n",
       "1         科教文化服务;学校;高等院校   141201       []                   人民路168号   \n",
       "2         科教文化服务;学校;高等院校   141201       []             新烟街道人民路东段168号   \n",
       "3         科教文化服务;学校;高等院校   141201       []                   人民路168号   \n",
       "4   科教文化服务;科教文化场所;科教文化场所   140000       []                   人民路168号   \n",
       "5   科教文化服务;科教文化场所;科教文化场所   140000       []           郑州大学西亚斯国际学院10号楼   \n",
       "6   科教文化服务;科教文化场所;科教文化场所   140000       []           人民东路168号郑州西亚斯学院   \n",
       "7   科教文化服务;科教文化场所;科教文化场所   140000       []               郑州西亚斯学院10号楼   \n",
       "8         科教文化服务;学校;高等院校   141201       []                    西亚斯欧洲街   \n",
       "9         科教文化服务;图书馆;图书馆   140500       []                   人民路168号   \n",
       "10      科教文化服务;培训机构;培训机构   141400       []        人民路与西亚斯欧洲街交叉口东100米   \n",
       "11  科教文化服务;科教文化场所;科教文化场所   140000       []                   人民路168号   \n",
       "12        科教文化服务;学校;高等院校   141201       []          人民路与民苑三街交叉口北200米   \n",
       "13  科教文化服务;科教文化场所;科教文化场所   140000       []                        []   \n",
       "14          科教文化服务;学校;学校   141200       []         人民路与民苑三街交叉口西北100米   \n",
       "15  科教文化服务;科教文化场所;科教文化场所   140000       []              郑州西亚斯学院1号教学楼   \n",
       "16        科教文化服务;学校;高等院校   141201       []  人民路与西亚斯欧洲街交叉口北50米西亚斯花园酒店   \n",
       "17        科教文化服务;学校;高等院校   141201       []                 人民路东段168号   \n",
       "18      科教文化服务;培训机构;培训机构   141400       []                   西亚斯国际学校   \n",
       "19      科教文化服务;培训机构;培训机构   141400       []          人民路与渔公二街交叉口西100米   \n",
       "\n",
       "                location  ... discount_num event  \\\n",
       "0   113.765389,34.401713  ...            0    []   \n",
       "1   113.766756,34.402957  ...            0    []   \n",
       "2   113.761060,34.397803  ...            0    []   \n",
       "3   113.766752,34.402952  ...            0    []   \n",
       "4   113.768026,34.396525  ...            0    []   \n",
       "5   113.763570,34.397804  ...            0    []   \n",
       "6   113.764368,34.395700  ...            0    []   \n",
       "7   113.763578,34.397809  ...            0    []   \n",
       "8   113.768089,34.402938  ...            0    []   \n",
       "9   113.764574,34.401567  ...            0    []   \n",
       "10  113.767807,34.395783  ...            0    []   \n",
       "11  113.766054,34.396713  ...            0    []   \n",
       "12  113.763358,34.398675  ...            0    []   \n",
       "13  113.763666,34.397774  ...            0    []   \n",
       "14  113.764422,34.395955  ...            0    []   \n",
       "15  113.764988,34.397158  ...            0    []   \n",
       "16  113.766935,34.395895  ...            0    []   \n",
       "17  113.767832,34.397036  ...            0    []   \n",
       "18  113.761650,34.398122  ...            0    []   \n",
       "19  113.762766,34.395755  ...            0    []   \n",
       "\n",
       "                                             children  \\\n",
       "0   [{'id': ' B01730JQAG ', 'name': ' 郑州西亚斯学院(南门) ...   \n",
       "1                                                  []   \n",
       "2   [{'id': ' B0FFGK5HLA ', 'name': ' 郑州西亚斯学院音乐学院(...   \n",
       "3   [{'id': ' B0FFGK5NOT ', 'name': ' 郑州西亚斯学院国际教育学...   \n",
       "4                                                  []   \n",
       "5                                                  []   \n",
       "6                                                  []   \n",
       "7                                                  []   \n",
       "8   [{'id': ' B0FFGK5NCH ', 'name': ' 郑州西亚斯学院体育学院(...   \n",
       "9                                                  []   \n",
       "10                                                 []   \n",
       "11                                                 []   \n",
       "12                                                 []   \n",
       "13                                                 []   \n",
       "14                                                 []   \n",
       "15                                                 []   \n",
       "16                                                 []   \n",
       "17                                                 []   \n",
       "18                                                 []   \n",
       "19                                                 []   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "1                                                  []               []   \n",
       "2                                                  []               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "4                                                  []               []   \n",
       "5                                                  []               []   \n",
       "6                                                  []               []   \n",
       "7                                                  []               []   \n",
       "8                                                  []               []   \n",
       "9   [{'title': [], 'url': 'http://aos-cdn-image.am...               []   \n",
       "10                                                 []               []   \n",
       "11                                                 []               []   \n",
       "12                                                 []               []   \n",
       "13                                                 []               []   \n",
       "14                                                 []               []   \n",
       "15                                                 []               []   \n",
       "16                                                 []               []   \n",
       "17                                                 []               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                []             []   \n",
       "1                 []                    []                []             []   \n",
       "2                 []                    []                []             []   \n",
       "3                 []                    []                []             []   \n",
       "4                 []                    []                []             []   \n",
       "5                 []                    []                []             []   \n",
       "6                 []                    []                []             []   \n",
       "7                 []                    []                []             []   \n",
       "8                 []                    []                []             []   \n",
       "9                 []                    []                []             []   \n",
       "10                []                    []                []             []   \n",
       "11                []                    []                []             []   \n",
       "12                []                    []                []             []   \n",
       "13                []                    []                []             []   \n",
       "14                []                    []                []             []   \n",
       "15                []                    []                []             []   \n",
       "16                []                    []                []             []   \n",
       "17                []                    []                []             []   \n",
       "18                []                    []                []             []   \n",
       "19                []                    []                []             []   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_西亚斯 = pd.json_normalize(西亚斯[\"pois\"])\n",
    "df_西亚斯_郑州西亚斯学院 = pd.json_normalize(西亚斯[\"pois\"][7][\"children\"])\n",
    "display(df_西亚斯,df_西亚斯_郑州西亚斯学院)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 周边搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [],
   "source": [
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'keywords':'博物馆',\n",
    "        'location':'113.765389,34.401713',\n",
    "        'types':'140100',\n",
    "        'city':'郑州市',\n",
    "        'redius':1000,\n",
    "        'sortrule':'distance',\n",
    "        'offset':offset,\n",
    "        'page':1,\n",
    "        'extensions':'base',\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '65',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B017304578',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '新郑博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆|风景名胜;风景名胜相关;旅游景点',\n",
       "   'typecode': '140100|110000',\n",
       "   'biz_type': [],\n",
       "   'address': '轩辕路228号(近黄帝故里)',\n",
       "   'location': '113.722651,34.399811',\n",
       "   'tel': '0371-62698808;12301',\n",
       "   'distance': '3931',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKVSVMD',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '庹福-朝泓膏药博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '107国道和双拥路交叉口尚居倍利产业园',\n",
       "   'location': '113.686807,34.542329',\n",
       "   'tel': [],\n",
       "   'distance': '17234',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFMCJBG5',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州失恋博物馆(锦荣悦汇城店)',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.861737,34.564936',\n",
       "   'tel': '17324992333',\n",
       "   'distance': '20206',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHP8YXC',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南省鬼斧神工雕塑艺术文化发展有限公司',\n",
       "   'type': '科教文化服务;博物馆;博物馆|公司企业;公司;公司',\n",
       "   'typecode': '140100|170200',\n",
       "   'biz_type': [],\n",
       "   'address': '曲梁产业聚集区岗牛村',\n",
       "   'location': '113.623760,34.543550',\n",
       "   'tel': '13903815565',\n",
       "   'distance': '20450',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B01730I1Z9',\n",
       "   'parent': 'B017304769',\n",
       "   'childtype': '302',\n",
       "   'name': '恒昌始祖山蜜蜂博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '始祖山',\n",
       "   'location': '113.547509,34.347022',\n",
       "   'tel': [],\n",
       "   'distance': '20924',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0173168A2',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南机床博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '龙湖镇商业路东段',\n",
       "   'location': '113.717401,34.592049',\n",
       "   'tel': [],\n",
       "   'distance': '21640',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKWVPE1',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '新郑星空失恋博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '龙湖镇高坡岩新农村第二排第二道街梦幻主题酒店对面中豪宾馆二楼星空失恋博物馆',\n",
       "   'location': '113.712309,34.611566',\n",
       "   'tel': '18911189812',\n",
       "   'distance': '23862',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFMAOTU8',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州失恋博物馆(华祥国贸店)',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.681453,34.610943',\n",
       "   'tel': [],\n",
       "   'distance': '24531',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFMBRYNF',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州鸟虫篆艺术博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '文德路鼎盛街交叉口',\n",
       "   'location': '113.732233,34.684730',\n",
       "   'tel': [],\n",
       "   'distance': '31651',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFW4263',\n",
       "   'parent': 'B01730ISNA',\n",
       "   'childtype': '309',\n",
       "   'name': '黄河科技学院南校区中国民办教育博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '紫荆山南路666号(黄河科技学院南校区内)',\n",
       "   'location': '113.676355,34.687073',\n",
       "   'tel': '0371-68784636',\n",
       "   'distance': '32798',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFN3CEF',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南省华夏石雕博物院(筹)',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '第四大街64号',\n",
       "   'location': '113.749634,34.715977',\n",
       "   'tel': [],\n",
       "   'distance': '35013',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0173165FX',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国厨房文化博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '经济技术开发区新安路10号',\n",
       "   'location': '113.905367,34.699129',\n",
       "   'tel': '0371-60862000',\n",
       "   'distance': '35508',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLBXFGN',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州大信非洲艺术博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '经济技术开发区新安路10号',\n",
       "   'location': '113.905185,34.699678',\n",
       "   'tel': '15939032640',\n",
       "   'distance': '35559',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLCMUQ9',\n",
       "   'parent': 'B0FFHPT0AG',\n",
       "   'childtype': '202',\n",
       "   'name': '水竹斋生活艺术馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '正商航海广场2-102',\n",
       "   'location': '113.668572,34.720029',\n",
       "   'tel': [],\n",
       "   'distance': '36529',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0173186AJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '城外城博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '长江西路与三环路桐柏路交汇处向南200米',\n",
       "   'location': '113.613018,34.708123',\n",
       "   'tel': [],\n",
       "   'distance': '36859',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL4S98F',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '秋堂艺术空间古董雅器品茶慢聊',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '文博城西九楼1F39',\n",
       "   'location': '113.762625,34.734436',\n",
       "   'tel': '18037170013',\n",
       "   'distance': '37039',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLKGS8B',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '宝瑞斋',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '淮河路交通路碧波园珍宝大世界一楼1012',\n",
       "   'location': '113.648204,34.730490',\n",
       "   'tel': '13603862667',\n",
       "   'distance': '38143',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKWK84F',\n",
       "   'parent': 'B017316SDP',\n",
       "   'childtype': '302',\n",
       "   'name': '河南精之巧实业有限公司',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '交通路碧波园珍宝大世界二楼2307',\n",
       "   'location': '113.647682,34.730397',\n",
       "   'tel': '13949422777',\n",
       "   'distance': '38146',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJXPPT6',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '天月普洱博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '博览路与青年路交叉口西100米',\n",
       "   'location': '113.707786,34.741484',\n",
       "   'tel': [],\n",
       "   'distance': '38189',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFRMNP0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南省茶文化博物馆',\n",
       "   'type': '科教文化服务;博物馆;博物馆',\n",
       "   'typecode': '140100',\n",
       "   'biz_type': [],\n",
       "   'address': '博览路与青年路交叉口西南150米',\n",
       "   'location': '113.706442,34.741430',\n",
       "   'tel': [],\n",
       "   'distance': '38201',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "郑大_周边POI = place_around(郑大_location)\n",
    "郑大_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B017304578</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>新郑博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆|风景名胜;风景名胜相关;旅游景点</td>\n",
       "      <td>140100|110000</td>\n",
       "      <td>[]</td>\n",
       "      <td>轩辕路228号(近黄帝故里)</td>\n",
       "      <td>113.722651,34.399811</td>\n",
       "      <td>0371-62698808;12301</td>\n",
       "      <td>3931</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFKVSVMD</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>庹福-朝泓膏药博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>107国道和双拥路交叉口尚居倍利产业园</td>\n",
       "      <td>113.686807,34.542329</td>\n",
       "      <td>[]</td>\n",
       "      <td>17234</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFMCJBG5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州失恋博物馆(锦荣悦汇城店)</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.861737,34.564936</td>\n",
       "      <td>17324992333</td>\n",
       "      <td>20206</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFHP8YXC</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>河南省鬼斧神工雕塑艺术文化发展有限公司</td>\n",
       "      <td>科教文化服务;博物馆;博物馆|公司企业;公司;公司</td>\n",
       "      <td>140100|170200</td>\n",
       "      <td>[]</td>\n",
       "      <td>曲梁产业聚集区岗牛村</td>\n",
       "      <td>113.623760,34.543550</td>\n",
       "      <td>13903815565</td>\n",
       "      <td>20450</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B01730I1Z9</td>\n",
       "      <td>B017304769</td>\n",
       "      <td>302</td>\n",
       "      <td>恒昌始祖山蜜蜂博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>始祖山</td>\n",
       "      <td>113.547509,34.347022</td>\n",
       "      <td>[]</td>\n",
       "      <td>20924</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0173168A2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>河南机床博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>龙湖镇商业路东段</td>\n",
       "      <td>113.717401,34.592049</td>\n",
       "      <td>[]</td>\n",
       "      <td>21640</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFKWVPE1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>新郑星空失恋博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>龙湖镇高坡岩新农村第二排第二道街梦幻主题酒店对面中豪宾馆二楼星空失恋博物馆</td>\n",
       "      <td>113.712309,34.611566</td>\n",
       "      <td>18911189812</td>\n",
       "      <td>23862</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFMAOTU8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州失恋博物馆(华祥国贸店)</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.681453,34.610943</td>\n",
       "      <td>[]</td>\n",
       "      <td>24531</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFMBRYNF</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州鸟虫篆艺术博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>文德路鼎盛街交叉口</td>\n",
       "      <td>113.732233,34.684730</td>\n",
       "      <td>[]</td>\n",
       "      <td>31651</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFFW4263</td>\n",
       "      <td>B01730ISNA</td>\n",
       "      <td>309</td>\n",
       "      <td>黄河科技学院南校区中国民办教育博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>紫荆山南路666号(黄河科技学院南校区内)</td>\n",
       "      <td>113.676355,34.687073</td>\n",
       "      <td>0371-68784636</td>\n",
       "      <td>32798</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFFN3CEF</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>河南省华夏石雕博物院(筹)</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>第四大街64号</td>\n",
       "      <td>113.749634,34.715977</td>\n",
       "      <td>[]</td>\n",
       "      <td>35013</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0173165FX</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国厨房文化博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>经济技术开发区新安路10号</td>\n",
       "      <td>113.905367,34.699129</td>\n",
       "      <td>0371-60862000</td>\n",
       "      <td>35508</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFLBXFGN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>郑州大信非洲艺术博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>经济技术开发区新安路10号</td>\n",
       "      <td>113.905185,34.699678</td>\n",
       "      <td>15939032640</td>\n",
       "      <td>35559</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFLCMUQ9</td>\n",
       "      <td>B0FFHPT0AG</td>\n",
       "      <td>202</td>\n",
       "      <td>水竹斋生活艺术馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>正商航海广场2-102</td>\n",
       "      <td>113.668572,34.720029</td>\n",
       "      <td>[]</td>\n",
       "      <td>36529</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0173186AJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>城外城博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>长江西路与三环路桐柏路交汇处向南200米</td>\n",
       "      <td>113.613018,34.708123</td>\n",
       "      <td>[]</td>\n",
       "      <td>36859</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFL4S98F</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>秋堂艺术空间古董雅器品茶慢聊</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>文博城西九楼1F39</td>\n",
       "      <td>113.762625,34.734436</td>\n",
       "      <td>18037170013</td>\n",
       "      <td>37039</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFLKGS8B</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>宝瑞斋</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>淮河路交通路碧波园珍宝大世界一楼1012</td>\n",
       "      <td>113.648204,34.730490</td>\n",
       "      <td>13603862667</td>\n",
       "      <td>38143</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFKWK84F</td>\n",
       "      <td>B017316SDP</td>\n",
       "      <td>302</td>\n",
       "      <td>河南精之巧实业有限公司</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>交通路碧波园珍宝大世界二楼2307</td>\n",
       "      <td>113.647682,34.730397</td>\n",
       "      <td>13949422777</td>\n",
       "      <td>38146</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFJXPPT6</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>天月普洱博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>博览路与青年路交叉口西100米</td>\n",
       "      <td>113.707786,34.741484</td>\n",
       "      <td>[]</td>\n",
       "      <td>38189</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFFRMNP0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>河南省茶文化博物馆</td>\n",
       "      <td>科教文化服务;博物馆;博物馆</td>\n",
       "      <td>140100</td>\n",
       "      <td>[]</td>\n",
       "      <td>博览路与青年路交叉口西南150米</td>\n",
       "      <td>113.706442,34.741430</td>\n",
       "      <td>[]</td>\n",
       "      <td>38201</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype                 name  \\\n",
       "0   B017304578          []        []                新郑博物馆   \n",
       "1   B0FFKVSVMD          []        []           庹福-朝泓膏药博物馆   \n",
       "2   B0FFMCJBG5          []        []      郑州失恋博物馆(锦荣悦汇城店)   \n",
       "3   B0FFHP8YXC          []        []  河南省鬼斧神工雕塑艺术文化发展有限公司   \n",
       "4   B01730I1Z9  B017304769       302           恒昌始祖山蜜蜂博物馆   \n",
       "5   B0173168A2          []        []              河南机床博物馆   \n",
       "6   B0FFKWVPE1          []        []            新郑星空失恋博物馆   \n",
       "7   B0FFMAOTU8          []        []       郑州失恋博物馆(华祥国贸店)   \n",
       "8   B0FFMBRYNF          []        []           郑州鸟虫篆艺术博物馆   \n",
       "9   B0FFFW4263  B01730ISNA       309   黄河科技学院南校区中国民办教育博物馆   \n",
       "10  B0FFFN3CEF          []        []        河南省华夏石雕博物院(筹)   \n",
       "11  B0173165FX          []        []            中国厨房文化博物馆   \n",
       "12  B0FFLBXFGN          []        []          郑州大信非洲艺术博物馆   \n",
       "13  B0FFLCMUQ9  B0FFHPT0AG       202             水竹斋生活艺术馆   \n",
       "14  B0173186AJ          []        []               城外城博物馆   \n",
       "15  B0FFL4S98F          []        []       秋堂艺术空间古董雅器品茶慢聊   \n",
       "16  B0FFLKGS8B          []        []                  宝瑞斋   \n",
       "17  B0FFKWK84F  B017316SDP       302          河南精之巧实业有限公司   \n",
       "18  B0FFJXPPT6          []        []              天月普洱博物馆   \n",
       "19  B0FFFRMNP0          []        []            河南省茶文化博物馆   \n",
       "\n",
       "                               type       typecode biz_type  \\\n",
       "0   科教文化服务;博物馆;博物馆|风景名胜;风景名胜相关;旅游景点  140100|110000       []   \n",
       "1                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "2                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "3         科教文化服务;博物馆;博物馆|公司企业;公司;公司  140100|170200       []   \n",
       "4                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "5                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "6                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "7                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "8                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "9                    科教文化服务;博物馆;博物馆         140100       []   \n",
       "10                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "11                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "12                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "13                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "14                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "15                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "16                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "17                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "18                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "19                   科教文化服务;博物馆;博物馆         140100       []   \n",
       "\n",
       "                                  address              location  \\\n",
       "0                          轩辕路228号(近黄帝故里)  113.722651,34.399811   \n",
       "1                     107国道和双拥路交叉口尚居倍利产业园  113.686807,34.542329   \n",
       "2                                      []  113.861737,34.564936   \n",
       "3                              曲梁产业聚集区岗牛村  113.623760,34.543550   \n",
       "4                                     始祖山  113.547509,34.347022   \n",
       "5                                龙湖镇商业路东段  113.717401,34.592049   \n",
       "6   龙湖镇高坡岩新农村第二排第二道街梦幻主题酒店对面中豪宾馆二楼星空失恋博物馆  113.712309,34.611566   \n",
       "7                                      []  113.681453,34.610943   \n",
       "8                               文德路鼎盛街交叉口  113.732233,34.684730   \n",
       "9                   紫荆山南路666号(黄河科技学院南校区内)  113.676355,34.687073   \n",
       "10                                第四大街64号  113.749634,34.715977   \n",
       "11                          经济技术开发区新安路10号  113.905367,34.699129   \n",
       "12                          经济技术开发区新安路10号  113.905185,34.699678   \n",
       "13                            正商航海广场2-102  113.668572,34.720029   \n",
       "14                   长江西路与三环路桐柏路交汇处向南200米  113.613018,34.708123   \n",
       "15                             文博城西九楼1F39  113.762625,34.734436   \n",
       "16                   淮河路交通路碧波园珍宝大世界一楼1012  113.648204,34.730490   \n",
       "17                      交通路碧波园珍宝大世界二楼2307  113.647682,34.730397   \n",
       "18                        博览路与青年路交叉口西100米  113.707786,34.741484   \n",
       "19                       博览路与青年路交叉口西南150米  113.706442,34.741430   \n",
       "\n",
       "                    tel distance biz_ext importance shopid shopinfo poiweight  \\\n",
       "0   0371-62698808;12301     3931      []         []     []        2        []   \n",
       "1                    []    17234      []         []     []        1        []   \n",
       "2           17324992333    20206      []         []     []        0        []   \n",
       "3           13903815565    20450      []         []     []        1        []   \n",
       "4                    []    20924      []         []     []        0        []   \n",
       "5                    []    21640      []         []     []        0        []   \n",
       "6           18911189812    23862      []         []     []        1        []   \n",
       "7                    []    24531      []         []     []        0        []   \n",
       "8                    []    31651      []         []     []        1        []   \n",
       "9         0371-68784636    32798      []         []     []        0        []   \n",
       "10                   []    35013      []         []     []        0        []   \n",
       "11        0371-60862000    35508      []         []     []        0        []   \n",
       "12          15939032640    35559      []         []     []        0        []   \n",
       "13                   []    36529      []         []     []        1        []   \n",
       "14                   []    36859      []         []     []        0        []   \n",
       "15          18037170013    37039      []         []     []        1        []   \n",
       "16          13603862667    38143      []         []     []        0        []   \n",
       "17          13949422777    38146      []         []     []        0        []   \n",
       "18                   []    38189      []         []     []        0        []   \n",
       "19                   []    38201      []         []     []        0        []   \n",
       "\n",
       "   photos  \n",
       "0      []  \n",
       "1      []  \n",
       "2      []  \n",
       "3      []  \n",
       "4      []  \n",
       "5      []  \n",
       "6      []  \n",
       "7      []  \n",
       "8      []  \n",
       "9      []  \n",
       "10     []  \n",
       "11     []  \n",
       "12     []  \n",
       "13     []  \n",
       "14     []  \n",
       "15     []  \n",
       "16     []  \n",
       "17     []  \n",
       "18     []  \n",
       "19     []  "
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_郑大_周边POI = pd.json_normalize(郑大_周边POI['pois'])\n",
    "df_郑大_周边POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 多边形搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [],
   "source": [
    "def place_polygon(keywords,types=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/polygon?parameters '\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'polygon':'113.655638,34.724284|113.614828,34.754074',\n",
    "        'keywords':'学校',\n",
    "        'types':141200,\n",
    "        'offset':offset,\n",
    "        'page':1,\n",
    "        'extensions':'base',\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '90',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFF4HJ86',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市桃园中学',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '桃源路42号',\n",
       "   'location': '113.637167,34.739529',\n",
       "   'tel': '0371-67763161',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B017304732',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州第二中学',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '大学路街道桃源路43号',\n",
       "   'location': '113.638729,34.739403',\n",
       "   'tel': '0371-67940256',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B017307B3Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市第五十七中学',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '兴华北街10-2号附近',\n",
       "   'location': '113.633489,34.743465',\n",
       "   'tel': '0371-67934309',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF2HD3A',\n",
       "   'parent': 'B01730IMLW',\n",
       "   'childtype': '202',\n",
       "   'name': '星艺美育钢琴艺术学校',\n",
       "   'type': '科教文化服务;学校;职业技术学校|科教文化服务;培训机构;培训机构',\n",
       "   'typecode': '141206|141400',\n",
       "   'biz_type': [],\n",
       "   'address': '兴华北街18号盛世经纬6层',\n",
       "   'location': '113.632611,34.739837',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF447T1',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南省激光与光电信息技术重点实验室',\n",
       "   'type': '科教文化服务;学校;职业技术学校',\n",
       "   'typecode': '141206',\n",
       "   'biz_type': [],\n",
       "   'address': '大学路街道大学路75号郑州大学21号楼',\n",
       "   'location': '113.638705,34.741668',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B017316UJK',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市第十九中学',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '陇海中路76号',\n",
       "   'location': '113.634162,34.735266',\n",
       "   'tel': '0371-67448940;0371-68979102',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHGV7BJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市二七区大学路街道办事处长城社区双拥工作站',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.630515,34.740065',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJUCXDS',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中报附中(陇海校区)',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '勤劳街18号附近',\n",
       "   'location': '113.640817,34.734550',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B017308WX9',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '路砦小学',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'typecode': '141203',\n",
       "   'biz_type': [],\n",
       "   'address': '淮北街28号路',\n",
       "   'location': '113.635807,34.733571',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF4K70T',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市社区科普大学(康桥华城分校)',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '勤劳街27附近',\n",
       "   'location': '113.641174,34.737534',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGIG137',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州爱中学校',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '嵩山路街道陇海路66号解放军信息工程大学院内',\n",
       "   'location': '113.628392,34.737841',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHK9L2I',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州大学(南校区)',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '大学北路75号',\n",
       "   'location': '113.638852,34.742962',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B01730IACR',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南工业大学(嵩山路校区)',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '嵩山南路140号',\n",
       "   'location': '113.626113,34.740717',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '中原区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFH9O0IZ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市二七区大学路办事处法律援助工作站',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '勤劳街33附近',\n",
       "   'location': '113.641166,34.737380',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFG4URMW',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南工业职业技术学院',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '于砦南街北200米',\n",
       "   'location': '113.625737,34.739325',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '中原区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGWQ2OU',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '河南省化学生物与有机化学重点实验室',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '大学路75号',\n",
       "   'location': '113.641976,34.741271',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHFU64F',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州铁路技师学院',\n",
       "   'type': '科教文化服务;学校;职业技术学校',\n",
       "   'typecode': '141206',\n",
       "   'biz_type': [],\n",
       "   'address': '勤劳街西100米',\n",
       "   'location': '113.640387,34.734468',\n",
       "   'tel': '0371-68892444',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B017304720',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '汝河路小学',\n",
       "   'type': '科教文化服务;学校;小学',\n",
       "   'typecode': '141203',\n",
       "   'biz_type': [],\n",
       "   'address': '淮北街9号',\n",
       "   'location': '113.636971,34.73039',\n",
       "   'tel': '0371-68970815;0371-68961156',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF4GJ66',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '兴华中学',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '陇海西路36号',\n",
       "   'location': '113.626963,34.736873',\n",
       "   'tel': '0371-67789057',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJ1ARPC',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '郑州市五十七中学区',\n",
       "   'type': '科教文化服务;学校;中学',\n",
       "   'typecode': '141202',\n",
       "   'biz_type': [],\n",
       "   'address': '陇海西路36号',\n",
       "   'location': '113.626819,34.736630',\n",
       "   'tel': [],\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '河南省',\n",
       "   'cityname': '郑州市',\n",
       "   'adname': '二七区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "郑大_多边 = place_polygon(\"小学\")\n",
    "郑大_多边"
   ]
  },
  {
   "attachments": {},
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## IP定位"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [],
   "source": [
    "def parameters(sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'ip':'120.24.42.221',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '深圳市',\n",
       " 'adcode': '440300',\n",
       " 'rectangle': '113.9629412,22.4627142;114.2106056,22.61394155'}"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ip = parameters('120.24.42.221')\n",
    "ip"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>province</th>\n",
       "      <th>city</th>\n",
       "      <th>adcode</th>\n",
       "      <th>rectangle</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>广东省</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>440300</td>\n",
       "      <td>113.9629412,22.4627142;114.2106056,22.61394155</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode province city  adcode  \\\n",
       "0      1   OK    10000      广东省  深圳市  440300   \n",
       "\n",
       "                                        rectangle  \n",
       "0  113.9629412,22.4627142;114.2106056,22.61394155  "
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_ip = pd.json_normalize(ip)\n",
    "df_ip"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 批量请求接口"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 163,
   "metadata": {},
   "outputs": [],
   "source": [
    "def body(url)->dict:\n",
    "    url = \"https://restapi.amap.com/v3/batch?key=\" + key_luo\n",
    "    header = {\n",
    "        'Content-Type':'application/json',\n",
    "    }\n",
    "\n",
    "    params={\n",
    "        \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=4996cc7eec646bf7fe2d0855069cf43f&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=4996cc7eec646bf7fe2d0855069cf43f&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "    ]    # 官网提供\n",
    "    }\n",
    "    response = requests.post(url,json=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 164,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011130061059158756285983500020066419192',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.139',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}},\n",
       " {'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '878',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFIT4V37',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.509300,39.261324',\n",
       "     'distance': '1935',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '昌丰路与昌盛街交叉口东150米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '利民老年公寓',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM1WN4Q',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.473800,39.284305',\n",
       "     'distance': '2684',\n",
       "     'tel': '13102692203;15032998415',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永丰路与建设大街交叉口北行200米再东行200米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/02f9a9353f15bb7c882c281addaca79a',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/462da2324343c04c255e5b6b55403952',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dfc87db906b2994dae80342d4563b1e9',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '唐山兵途枪战运动',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080301',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFF2T193',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471098,39.281979',\n",
       "     'distance': '2861',\n",
       "     'tel': '0315-8037777',\n",
       "     'biz_ext': {'rating': '4.3', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街与永丰路交叉口西南角',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/c8fd0a18befbe849ce8df7908d88ed24',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/468baaf5453e6c1b38d0c4c417183b40',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/a0a5fff0b63e60b3508c2ecb197d07e5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;夜总会',\n",
       "     'shopinfo': '0',\n",
       "     'name': '一代佳人夜总会',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKPS8TZ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471344,39.273170',\n",
       "     'distance': '2864',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街与永丰路交叉口南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '新少年跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080402',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013B031EO',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.469256,39.278622',\n",
       "     'distance': '2989',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '曙光街23号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;度假疗养场所;疗养院',\n",
       "     'shopinfo': '0',\n",
       "     'name': '光荣院(曙光街)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFHF91Y9',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.467429,39.273141',\n",
       "     'distance': '3196',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街8号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '曹妃甸区老干部活动中心',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLDK6TP',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466867,39.281969',\n",
       "     'distance': '3222',\n",
       "     'tel': '17736580504',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街红赫世家东底商58号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/b59e23956de23e47401416a6b4808c0c',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '泽仁跆拳道',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFH9MB8R',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.527757,39.301926',\n",
       "     'distance': '3343',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '杨柏线北50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '陶乐宝儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080304',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLOR4DN',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466494,39.287701',\n",
       "     'distance': '3395',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '青年城二期东底商24号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/29997dd7b0c66b1dc6f15a253918ccf2',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/098df33a76f03e8d55672683f63da5d8',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;酒吧',\n",
       "     'shopinfo': '1',\n",
       "     'name': 'ELK酒吧',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMB6BAG',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.528670,39.302678',\n",
       "     'distance': '3457',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': '下午时光台球俱乐部',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011130061059158756285983500020066419192',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.124',\n",
       "   'Content-Length': 5564,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}}]"
      ]
     },
     "execution_count": 164,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pl = body('url')\n",
    "pl"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 静态地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'location':'113.636423,34.745966',\n",
    "        'zoom':16,\n",
    "        'size':size,\n",
    "        'scale':1,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':0,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEXWlJL6+frrn5+6lJDb7vZiYmL9/f3b6O3++f78+O3X4OLx7OX8/fv27ef19e/5+v3x9+jr6ubW4d/0+ezsx5TS3uNlZWaQkZPU4Obz8OX19/vv7ent7OXf6vrr6uP18+/19/je2dHYoVvz7+fpnp78+/rq3MX2+Pn8/Pnc2dLa39749O329fLV3t7p39Lx8e3i78X7/f38+/r28uzv9Pfa29j18ejw8PD7+PTm7/X7+/zx9vr7+vfc2M7Dw8S7urzO3On5+fjL2eTml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YwV0URIVk4Wi0JAMyx+nUkD2Y09cu7KSAfw5/VlpGPuuVoPGjOJeeZ0yXlm2aqJ3/e+NxkJpXUqIt67ICYiHG88plfUMr4EJxyo9oOBeT+yLgLAHJ087FfJD2EQB5uqauNaMXC4K1Iv+fMt6Kcb+URItd53mvi0mEvHpwIeQStoHiwwttvkX/QyoeDfq7kFrt5cImgp/v8r0kcv3qe/uzkUilBlMKEoIzHHwhNoHtFovkssr70iV/rF6gcuiCQithzpe2L//zTTz+476v1ilseBm9B04hIo9pIdF50ORYeoQEYaoKvr3CBPLZ8r+dhmm+QSi3UgjZkfNJs8xDA8Y2+J89gjcInYSgYAvKrnxUQmqDlAv0C1aHSjC93fpkt3b//9/2LNySGbVke/fkJ6jYYayAbSG5tTGV0IHl/R/+ZzwpgUbww2qIim8eZ0Sy08rGJPiVvrnkIuFbfjN8ge/JzJhMUCMg4BDL5cwWCxFjA7Eo2jldQi+mZW5ojYrQ4Rt5upvqQuLREvDxaS24JowmH07v42rpgXiCpffEwZpcZ8WCueQjhKCDNrOfzHC9OrtMAICt//kAMmQg92QRRQIWbZCYGwo2R8shbD1i3hMDDNyaE0baEqdkLu2qBNJzUdT3kQi39STPN403+I337CdOenCaT64oJouh/AJBFp547lbI1qKeoAvj1GQYgdE8MAkFbwuA1J4xbwsBXiq8J5OGkIl8om47MTPPg78vf1vfkI/E875ncBysVpMJx4c8ayP8HtfvKSPlDAcEAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x119350F28>"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location='113.636423,34.745966',zoom=16)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [],
   "source": [
    "def coordsys(locations,coordsys='gps',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'locations':'113.636423,34.745966',\n",
    "        'coordsys':'gps',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '113.630012962903,34.73967056173'}"
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gps = coordsys('113.636423,34.745966')\n",
    "gps"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>locations</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>ok</td>\n",
       "      <td>10000</td>\n",
       "      <td>113.630012962903,34.73967056173</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                        locations\n",
       "0      1   ok    10000  113.630012962903,34.73967056173"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_gps = pd.json_normalize(gps)\n",
    "df_gps"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 天气查询"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 实况天气"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "def lives(city,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'city':'410100',\n",
    "        'extensions':'base',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '河南',\n",
       "   'city': '郑州市',\n",
       "   'adcode': '410100',\n",
       "   'weather': '多云',\n",
       "   'temperature': '16',\n",
       "   'winddirection': '东南',\n",
       "   'windpower': '≤3',\n",
       "   'humidity': '21',\n",
       "   'reporttime': '2020-04-22 17:22:28'}]}"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather = lives('410100')\n",
    "weather"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>count</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>lives</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'province': '河南', 'city': '郑州市', 'adcode': '...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status count info infocode  \\\n",
       "0      1     1   OK    10000   \n",
       "\n",
       "                                               lives  \n",
       "0  [{'province': '河南', 'city': '郑州市', 'adcode': '...  "
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_weather = pd.json_normalize(weather)\n",
    "df_weather"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 预报天气"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [],
   "source": [
    "def forest(city,extensions='all',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'city':'410100',\n",
    "        'extensions':'all',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '郑州市',\n",
       "   'adcode': '410100',\n",
       "   'province': '河南',\n",
       "   'reporttime': '2020-04-22 18:22:27',\n",
       "   'casts': [{'date': '2020-04-22',\n",
       "     'week': '3',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '17',\n",
       "     'nighttemp': '7',\n",
       "     'daywind': '东北',\n",
       "     'nightwind': '东北',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'},\n",
       "    {'date': '2020-04-23',\n",
       "     'week': '4',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '晴',\n",
       "     'daytemp': '20',\n",
       "     'nighttemp': '7',\n",
       "     'daywind': '东北',\n",
       "     'nightwind': '东北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-04-24',\n",
       "     'week': '5',\n",
       "     'dayweather': '晴',\n",
       "     'nightweather': '晴',\n",
       "     'daytemp': '24',\n",
       "     'nighttemp': '13',\n",
       "     'daywind': '西',\n",
       "     'nightwind': '西',\n",
       "     'daypower': '5',\n",
       "     'nightpower': '5'},\n",
       "    {'date': '2020-04-25',\n",
       "     'week': '6',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '25',\n",
       "     'nighttemp': '11',\n",
       "     'daywind': '东北',\n",
       "     'nightwind': '东北',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'}]}]}"
      ]
     },
     "execution_count": 79,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather = forest('410100')\n",
    "weather"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [],
   "source": [
    "def tips(city=None,location=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'keywords':'郑大',\n",
    "        'types':'141201',\n",
    "        'city':'410100',\n",
    "        'location': '113.636423,34.745966',\n",
    "        'citylimit':True,\n",
    "        'datatype':'all',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': 'B0173080HG',\n",
       "   'name': '郑州大学第一附属医院河医院区',\n",
       "   'district': '河南省郑州市二七区',\n",
       "   'adcode': '410103',\n",
       "   'location': '113.64609,34.752743',\n",
       "   'address': '建设东路1号',\n",
       "   'typecode': '090101',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF90QNJ',\n",
       "   'name': '郑州大学第一附属医院郑东院区',\n",
       "   'district': '河南省郑州市金水区',\n",
       "   'adcode': '410105',\n",
       "   'location': '113.762218,34.797224',\n",
       "   'address': '龙湖中环路1号',\n",
       "   'typecode': '090101',\n",
       "   'city': []},\n",
       "  {'id': 'B0173046B7',\n",
       "   'name': '郑州大学第二附属医院',\n",
       "   'district': '河南省郑州市金水区',\n",
       "   'adcode': '410105',\n",
       "   'location': '113.670326,34.766054',\n",
       "   'address': '经八路2号',\n",
       "   'typecode': '090101',\n",
       "   'city': []},\n",
       "  {'id': 'B01730K37H',\n",
       "   'name': '郑大',\n",
       "   'district': '河南省郑州市中原区',\n",
       "   'adcode': '410102',\n",
       "   'location': '113.53591,34.817077',\n",
       "   'address': '科学大道100号',\n",
       "   'typecode': '141201',\n",
       "   'city': []},\n",
       "  {'id': 'BV10090778',\n",
       "   'name': '郑大新区南门(公交站)',\n",
       "   'district': '河南省郑州市中原区',\n",
       "   'adcode': '410102',\n",
       "   'location': '113.537651,34.807796',\n",
       "   'address': '(停运)259路;(停运)725路;182路;408路;B12路;B67路;Y18路',\n",
       "   'typecode': '150700',\n",
       "   'city': []},\n",
       "  {'id': 'B0173042A5',\n",
       "   'name': '郑州大学第三附属医院(省妇幼保健院)',\n",
       "   'district': '河南省郑州市二七区',\n",
       "   'adcode': '410103',\n",
       "   'location': '113.647987,34.743302',\n",
       "   'address': '康复前街7号',\n",
       "   'typecode': '090200',\n",
       "   'city': []},\n",
       "  {'id': 'B017307AN8',\n",
       "   'name': '郑大五附院',\n",
       "   'district': '河南省郑州市二七区',\n",
       "   'adcode': '410103',\n",
       "   'location': '113.651616,34.743497',\n",
       "   'address': '康复前街3号',\n",
       "   'typecode': '090101',\n",
       "   'city': []},\n",
       "  {'id': 'B01730IADW',\n",
       "   'name': '郑州大学南校区',\n",
       "   'district': '河南省郑州市二七区',\n",
       "   'adcode': '410103',\n",
       "   'location': '113.639403,34.742336',\n",
       "   'address': '大学北路75号',\n",
       "   'typecode': '141201',\n",
       "   'city': []},\n",
       "  {'id': 'B017319YQ8',\n",
       "   'name': '郑州大学第一附属医院河医院区门诊部',\n",
       "   'district': '河南省郑州市二七区',\n",
       "   'adcode': '410103',\n",
       "   'location': '113.644960,34.753330',\n",
       "   'address': '建设东路1号郑州大学第一附属医院内',\n",
       "   'typecode': '090101',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF90LYD',\n",
       "   'name': '郑州大学新校区(北门)',\n",
       "   'district': '河南省郑州市中原区',\n",
       "   'adcode': '410102',\n",
       "   'location': '113.536283,34.826855',\n",
       "   'address': '莲花街',\n",
       "   'typecode': '991400',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 82,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tip = tips('郑大')\n",
    "tip"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 83,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>district</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>typecode</th>\n",
       "      <th>city</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0173080HG</td>\n",
       "      <td>郑州大学第一附属医院河医院区</td>\n",
       "      <td>河南省郑州市二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.64609,34.752743</td>\n",
       "      <td>建设东路1号</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFF90QNJ</td>\n",
       "      <td>郑州大学第一附属医院郑东院区</td>\n",
       "      <td>河南省郑州市金水区</td>\n",
       "      <td>410105</td>\n",
       "      <td>113.762218,34.797224</td>\n",
       "      <td>龙湖中环路1号</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0173046B7</td>\n",
       "      <td>郑州大学第二附属医院</td>\n",
       "      <td>河南省郑州市金水区</td>\n",
       "      <td>410105</td>\n",
       "      <td>113.670326,34.766054</td>\n",
       "      <td>经八路2号</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B01730K37H</td>\n",
       "      <td>郑大</td>\n",
       "      <td>河南省郑州市中原区</td>\n",
       "      <td>410102</td>\n",
       "      <td>113.53591,34.817077</td>\n",
       "      <td>科学大道100号</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>BV10090778</td>\n",
       "      <td>郑大新区南门(公交站)</td>\n",
       "      <td>河南省郑州市中原区</td>\n",
       "      <td>410102</td>\n",
       "      <td>113.537651,34.807796</td>\n",
       "      <td>(停运)259路;(停运)725路;182路;408路;B12路;B67路;Y18路</td>\n",
       "      <td>150700</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0173042A5</td>\n",
       "      <td>郑州大学第三附属医院(省妇幼保健院)</td>\n",
       "      <td>河南省郑州市二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.647987,34.743302</td>\n",
       "      <td>康复前街7号</td>\n",
       "      <td>090200</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B017307AN8</td>\n",
       "      <td>郑大五附院</td>\n",
       "      <td>河南省郑州市二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.651616,34.743497</td>\n",
       "      <td>康复前街3号</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B01730IADW</td>\n",
       "      <td>郑州大学南校区</td>\n",
       "      <td>河南省郑州市二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.639403,34.742336</td>\n",
       "      <td>大学北路75号</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B017319YQ8</td>\n",
       "      <td>郑州大学第一附属医院河医院区门诊部</td>\n",
       "      <td>河南省郑州市二七区</td>\n",
       "      <td>410103</td>\n",
       "      <td>113.644960,34.753330</td>\n",
       "      <td>建设东路1号郑州大学第一附属医院内</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFF90LYD</td>\n",
       "      <td>郑州大学新校区(北门)</td>\n",
       "      <td>河南省郑州市中原区</td>\n",
       "      <td>410102</td>\n",
       "      <td>113.536283,34.826855</td>\n",
       "      <td>莲花街</td>\n",
       "      <td>991400</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id                name   district  adcode              location  \\\n",
       "0  B0173080HG      郑州大学第一附属医院河医院区  河南省郑州市二七区  410103   113.64609,34.752743   \n",
       "1  B0FFF90QNJ      郑州大学第一附属医院郑东院区  河南省郑州市金水区  410105  113.762218,34.797224   \n",
       "2  B0173046B7          郑州大学第二附属医院  河南省郑州市金水区  410105  113.670326,34.766054   \n",
       "3  B01730K37H                  郑大  河南省郑州市中原区  410102   113.53591,34.817077   \n",
       "4  BV10090778         郑大新区南门(公交站)  河南省郑州市中原区  410102  113.537651,34.807796   \n",
       "5  B0173042A5  郑州大学第三附属医院(省妇幼保健院)  河南省郑州市二七区  410103  113.647987,34.743302   \n",
       "6  B017307AN8               郑大五附院  河南省郑州市二七区  410103  113.651616,34.743497   \n",
       "7  B01730IADW             郑州大学南校区  河南省郑州市二七区  410103  113.639403,34.742336   \n",
       "8  B017319YQ8   郑州大学第一附属医院河医院区门诊部  河南省郑州市二七区  410103  113.644960,34.753330   \n",
       "9  B0FFF90LYD         郑州大学新校区(北门)  河南省郑州市中原区  410102  113.536283,34.826855   \n",
       "\n",
       "                                      address typecode city  \n",
       "0                                      建设东路1号   090101   []  \n",
       "1                                     龙湖中环路1号   090101   []  \n",
       "2                                       经八路2号   090101   []  \n",
       "3                                    科学大道100号   141201   []  \n",
       "4  (停运)259路;(停运)725路;182路;408路;B12路;B67路;Y18路   150700   []  \n",
       "5                                      康复前街7号   090200   []  \n",
       "6                                      康复前街3号   090101   []  \n",
       "7                                     大学北路75号   141201   []  \n",
       "8                           建设东路1号郑州大学第一附属医院内   090101   []  \n",
       "9                                         莲花街   991400   []  "
      ]
     },
     "execution_count": 83,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_tp = pd.json_normalize(tip,record_path='tips')\n",
    "df_tp"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 交通态势"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 矩形区域交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {},
   "outputs": [],
   "source": [
    "def trafficinfo(rectangle,level=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'rectangle':'116.351147,39.966309;116.357134,39.968727',\n",
    "        'level':4,\n",
    "        'extensions':'all',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北四环路：北辰西桥附近自西向东行驶缓慢。',\n",
       "  'evaluation': {'expedite': '81.25%',\n",
       "   'congested': '18.75%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '2',\n",
       "   'description': '轻度拥堵'},\n",
       "  'roads': [{'name': '北四环路',\n",
       "    'status': '2',\n",
       "    'direction': '从北辰西桥到北辰桥',\n",
       "    'angle': '2',\n",
       "    'speed': '20',\n",
       "    'lcodes': '4708',\n",
       "    'polyline': '116.38929,39.9878502;116.397903,39.988102'},\n",
       "   {'name': '北四环路',\n",
       "    'status': '2',\n",
       "    'direction': '从安慧桥到北辰东路',\n",
       "    'angle': '182',\n",
       "    'speed': '30',\n",
       "    'lcodes': '-5934',\n",
       "    'polyline': '116.404282,39.9884605;116.402878,39.9884186;116.397621,39.9882698'},\n",
       "   {'name': '北三环路',\n",
       "    'status': '1',\n",
       "    'direction': '从大钟寺到马甸桥',\n",
       "    'angle': '1',\n",
       "    'speed': '50',\n",
       "    'lcodes': '5878,4731,5897,4730,6489,4729',\n",
       "    'polyline': '116.343964,39.9675789;116.345161,39.9675903;116.34626,39.9676018;116.347557,39.9676018;116.348083,39.967617;116.348465,39.9676208;116.349258,39.9676361;116.351402,39.9676361;116.353104,39.9676437;116.353348,39.9676476;116.354546,39.9676552;116.354866,39.967659;116.357048,39.9676819;116.358582,39.9676437;116.361137,39.9676476;116.36187,39.9676628;116.362915,39.9676666;116.364426,39.9676743;116.366669,39.9677048;116.368797,39.9678078;116.370506,39.9678535;116.372978,39.9679451;116.37394,39.9679718;116.375557,39.9680138;116.377441,39.9680519;116.378563,39.9680634;116.379799,39.9681015;116.380508,39.9681168;116.381546,39.9681435'},\n",
       "   {'name': '北三环路',\n",
       "    'status': '1',\n",
       "    'direction': '从北太平桥到科学院南路',\n",
       "    'angle': '180',\n",
       "    'speed': '55',\n",
       "    'lcodes': '-5897,-4731,-5878,-5882,-4732,-5835',\n",
       "    'polyline': '116.366661,39.9678574;116.364433,39.9678116;116.361763,39.9677925;116.360542,39.9677849;116.360229,39.9677811;116.358894,39.9677773;116.357048,39.9677811;116.354248,39.9677544;116.349884,39.9677391;116.349258,39.9677391;116.348763,39.9677315;116.347961,39.9677238;116.347427,39.96772;116.345901,39.9677124;116.345177,39.967701;116.343521,39.9676933;116.342667,39.9676743;116.341568,39.9676666;116.340668,39.9676552;116.339737,39.9676476;116.337715,39.9676323;116.336281,39.9676285;116.33358,39.9675751;116.332748,39.9675484;116.33239,39.9675369;116.330025,39.967453;116.329567,39.9674301;116.327271,39.9673615;116.326759,39.9673271'},\n",
       "   {'name': '西土城路',\n",
       "    'status': '1',\n",
       "    'direction': '从西直门北大街到蓟门桥',\n",
       "    'angle': '91',\n",
       "    'speed': '55',\n",
       "    'lcodes': '6045,6043,6042',\n",
       "    'polyline': '116.355164,39.9556694;116.355125,39.9562759;116.35511,39.9571609;116.355011,39.9595947;116.354965,39.9611626;116.354881,39.962513;116.354813,39.9638901;116.354774,39.9646606;116.354729,39.9655113;116.354683,39.9664383;116.354652,39.9668274;116.35463,39.9672127;116.354576,39.9683113;116.354561,39.9690628'},\n",
       "   {'name': '西土城路',\n",
       "    'status': '1',\n",
       "    'direction': '从学知桥到明光桥',\n",
       "    'angle': '272',\n",
       "    'speed': '45',\n",
       "    'lcodes': '-6041,-6042,-6043,-6045',\n",
       "    'polyline': '116.353882,39.9792252;116.353912,39.9787941;116.353958,39.9778633;116.353943,39.9774628;116.353928,39.9773483;116.353905,39.9772148;116.353859,39.9770851;116.353798,39.9769478;116.353722,39.9768105;116.353561,39.9765396;116.353371,39.9761848;116.35321,39.9758873;116.353149,39.9757614;116.353065,39.9755096;116.353027,39.975399;116.352997,39.975174;116.352997,39.9748459;116.353043,39.9742355;116.353065,39.9736176;116.353065,39.9733429;116.353104,39.9723434;116.353172,39.9709282;116.353264,39.9700279;116.353348,39.9695282;116.353401,39.9692574;116.353432,39.9690971;116.353546,39.9667168;116.353554,39.9664307;116.353546,39.9662971;116.353531,39.9661598;116.353493,39.965992;116.353432,39.9657707;116.35331,39.9653625;116.353287,39.9652481;116.353279,39.9651337;116.353279,39.9649506;116.353371,39.96315;116.353477,39.9611206;116.353554,39.9605103;116.353607,39.9602089;116.353653,39.9600372;116.353828,39.9596481;116.354759,39.9580765;116.354813,39.9579773;116.354843,39.9578934;116.354912,39.9576988;116.354935,39.9575691;116.354965,39.9574089;116.35498,39.9572754;116.354988,39.957077;116.355034,39.9560204;116.355042,39.9556656'},\n",
       "   {'name': '京藏高速',\n",
       "    'status': '1',\n",
       "    'direction': '马甸桥附近',\n",
       "    'angle': '84',\n",
       "    'speed': '49',\n",
       "    'lcodes': '6339',\n",
       "    'polyline': '116.380577,39.9689102;116.380661,39.9693985;116.380692,39.9697876'},\n",
       "   {'name': '北四环路',\n",
       "    'status': '1',\n",
       "    'direction': '从四元桥到四元西桥',\n",
       "    'angle': '139',\n",
       "    'speed': '50',\n",
       "    'lcodes': '-4702',\n",
       "    'polyline': '116.464317,39.974823;116.462837,39.9757957;116.462563,39.975975'}]}}"
      ]
     },
     "execution_count": 93,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic = trafficinfo('116.351147,39.966309;116.357134,39.968727')\n",
    "traffic"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>trafficinfo.description</th>\n",
       "      <th>trafficinfo.evaluation.expedite</th>\n",
       "      <th>trafficinfo.evaluation.congested</th>\n",
       "      <th>trafficinfo.evaluation.blocked</th>\n",
       "      <th>trafficinfo.evaluation.unknown</th>\n",
       "      <th>trafficinfo.evaluation.status</th>\n",
       "      <th>trafficinfo.evaluation.description</th>\n",
       "      <th>trafficinfo.roads</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>北四环路：北辰西桥附近自西向东行驶缓慢。</td>\n",
       "      <td>81.25%</td>\n",
       "      <td>18.75%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>2</td>\n",
       "      <td>轻度拥堵</td>\n",
       "      <td>[{'name': '北四环路', 'status': '2', 'direction': ...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode trafficinfo.description  \\\n",
       "0      1   OK    10000    北四环路：北辰西桥附近自西向东行驶缓慢。   \n",
       "\n",
       "  trafficinfo.evaluation.expedite trafficinfo.evaluation.congested  \\\n",
       "0                          81.25%                           18.75%   \n",
       "\n",
       "  trafficinfo.evaluation.blocked trafficinfo.evaluation.unknown  \\\n",
       "0                          0.00%                          0.00%   \n",
       "\n",
       "  trafficinfo.evaluation.status trafficinfo.evaluation.description  \\\n",
       "0                             2                               轻度拥堵   \n",
       "\n",
       "                                   trafficinfo.roads  \n",
       "0  [{'name': '北四环路', 'status': '2', 'direction': ...  "
      ]
     },
     "execution_count": 94,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_tra = pd.json_normalize(traffic,meta='roads')\n",
    "df_tra"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 圆形区域交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 105,
   "metadata": {},
   "outputs": [],
   "source": [
    "def trafficinfo(circle,level=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/circle?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'location':'116.3057764,39.98641364',\n",
    "        'level':4,\n",
    "        'radius':1000,\n",
    "        'extensions':'base',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 106,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北四环路：双向畅通。',\n",
       "  'evaluation': {'expedite': '100.00%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '1',\n",
       "   'description': '整体畅通'}}}"
      ]
     },
     "execution_count": 106,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic_circle = trafficinfo('116.3057764,39.98641364')\n",
    "traffic_circle"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 107,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>trafficinfo.description</th>\n",
       "      <th>trafficinfo.evaluation.expedite</th>\n",
       "      <th>trafficinfo.evaluation.congested</th>\n",
       "      <th>trafficinfo.evaluation.blocked</th>\n",
       "      <th>trafficinfo.evaluation.unknown</th>\n",
       "      <th>trafficinfo.evaluation.status</th>\n",
       "      <th>trafficinfo.evaluation.description</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>北四环路：双向畅通。</td>\n",
       "      <td>100.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>1</td>\n",
       "      <td>整体畅通</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode trafficinfo.description  \\\n",
       "0      1   OK    10000              北四环路：双向畅通。   \n",
       "\n",
       "  trafficinfo.evaluation.expedite trafficinfo.evaluation.congested  \\\n",
       "0                         100.00%                            0.00%   \n",
       "\n",
       "  trafficinfo.evaluation.blocked trafficinfo.evaluation.unknown  \\\n",
       "0                          0.00%                          0.00%   \n",
       "\n",
       "  trafficinfo.evaluation.status trafficinfo.evaluation.description  \n",
       "0                             1                               整体畅通  "
      ]
     },
     "execution_count": 107,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_tra_cir = pd.json_normalize(traffic_circle)\n",
    "df_tra_cir"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 指定线路交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 108,
   "metadata": {},
   "outputs": [],
   "source": [
    "def trafficinfo(road,level=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/road?parameters'\n",
    "    params={\n",
    "        'key':key_luo,\n",
    "        'location':'116.3057764,39.98641364',\n",
    "        'name':'北环大道',\n",
    "        'adcode':'440300',\n",
    "        'level':4,\n",
    "        'extensions':'base',\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 109,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北环大道：双向缓慢，从北环沙河西立交到北环香蜜立交严重拥堵，从北环龙珠立交到北环沙河东立交严重拥堵。',\n",
       "  'evaluation': {'expedite': '43.04%',\n",
       "   'congested': '31.97%',\n",
       "   'blocked': '24.99%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '3',\n",
       "   'description': '行驶缓慢'}}}"
      ]
     },
     "execution_count": 109,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic_road = trafficinfo('116.3057764,39.98641364')\n",
    "traffic_road"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 110,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>trafficinfo.description</th>\n",
       "      <th>trafficinfo.evaluation.expedite</th>\n",
       "      <th>trafficinfo.evaluation.congested</th>\n",
       "      <th>trafficinfo.evaluation.blocked</th>\n",
       "      <th>trafficinfo.evaluation.unknown</th>\n",
       "      <th>trafficinfo.evaluation.status</th>\n",
       "      <th>trafficinfo.evaluation.description</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>北环大道：双向缓慢，从北环沙河西立交到北环香蜜立交严重拥堵，从北环龙珠立交到北环沙河东立交严...</td>\n",
       "      <td>43.04%</td>\n",
       "      <td>31.97%</td>\n",
       "      <td>24.99%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>3</td>\n",
       "      <td>行驶缓慢</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                            trafficinfo.description  \\\n",
       "0      1   OK    10000  北环大道：双向缓慢，从北环沙河西立交到北环香蜜立交严重拥堵，从北环龙珠立交到北环沙河东立交严...   \n",
       "\n",
       "  trafficinfo.evaluation.expedite trafficinfo.evaluation.congested  \\\n",
       "0                          43.04%                           31.97%   \n",
       "\n",
       "  trafficinfo.evaluation.blocked trafficinfo.evaluation.unknown  \\\n",
       "0                         24.99%                          0.00%   \n",
       "\n",
       "  trafficinfo.evaluation.status trafficinfo.evaluation.description  \n",
       "0                             3                               行驶缓慢  "
      ]
     },
     "execution_count": 110,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_tra_road = pd.json_normalize(traffic_road)\n",
    "df_tra_road"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理围栏"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 新建围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 155,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'gid': '0900a485-15c7-4912-8195-db54afc7ee56',\n",
       "  'id': '0',\n",
       "  'message': '成功',\n",
       "  'status': '0'},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 155,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def creat(key)->dict:\n",
    "    url = 'https://restapi.amap.com/v4/geofence/meta?key='+key_luo\n",
    "    params={\n",
    "        \"name\": \"一个围栏\", \n",
    "        \"center\": '113.260032,23.124473',\n",
    "        \"radius\": \"1000\",\n",
    "        \"enable\": \"true\",\n",
    "        \"repeat\": \"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "        \"time\": \"00:00,11:59;13:00,20:59\",\n",
    "        \"desc\": \"一个围栏描述\",\n",
    "        \"alert_condition\": \"enter;leave\",\n",
    "        \"valid_time\": \"2020-11-28\",\n",
    "    }\n",
    "    response = requests.post(url,json=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "creat(key_luo)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 查询围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 157,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1,\n",
       "  'page_size': 20,\n",
       "  'rs_list': [{'adcode': '0',\n",
       "    'alert_condition': 'enter;leave',\n",
       "    'center': '113.260032,23.124473',\n",
       "    'create_time': '2020-04-22 21:30:14',\n",
       "    'enable': True,\n",
       "    'fixed_date': '',\n",
       "    'gid': '0900a485-15c7-4912-8195-db54afc7ee56',\n",
       "    'id': '0',\n",
       "    'key': '4996cc7eec646bf7fe2d0855069cf43f',\n",
       "    'name': '一个围栏',\n",
       "    'points': '',\n",
       "    'radius': 1000.0,\n",
       "    'repeat': 'Mon,Tues,Wed,Thur,Fri,Sat,Sun',\n",
       "    'time': '00:00,11:59;13:00,20:59',\n",
       "    'valid_time': '2020-11-28'}],\n",
       "  'total_record': 1},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 157,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def find(gid,name=None,page_no=None,page_size=None,enable=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v4/geofence/meta?key='+key_luo\n",
    "    parmas={\n",
    "        'key':key_luo,\n",
    "        'id':'0',\n",
    "        'gid':'a8b3c1dd-c6aa-4c69-9974-b473d5dda8a5',\n",
    "        'name':'w_01',\n",
    "        'page_no':None,\n",
    "        'page_size':None,\n",
    "        'enable':None,\n",
    "        'start_time':'2018-07-03 10:04:16',\n",
    "        'end_time':'2020-08-18 06:04:08'     \n",
    "    }\n",
    "    response = requests.get(url,params=parameters)\n",
    "    data = response.json()\n",
    "    return data\n",
    "rs = find(gid)\n",
    "rs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 158,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>page_no</th>\n",
       "      <th>page_size</th>\n",
       "      <th>rs_list</th>\n",
       "      <th>total_record</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>20</td>\n",
       "      <td>[{'adcode': '0', 'alert_condition': 'enter;lea...</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   page_no  page_size                                            rs_list  \\\n",
       "0        1         20  [{'adcode': '0', 'alert_condition': 'enter;lea...   \n",
       "\n",
       "   total_record  \n",
       "0             1  "
      ]
     },
     "execution_count": 158,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_rs = pd.json_normalize(rs['data'])\n",
    "df_rs"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 轨迹纠偏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 159,
   "metadata": {},
   "outputs": [],
   "source": [
    "import json\n",
    "def grasproad(Key)->dict:\n",
    "    url = 'https://restapi.amap.com/v4/grasproad/driving?key='+key_luo\n",
    "    body = [{\n",
    "        \"x\": 116.449429,\n",
    "        \"y\": 40.014844,\n",
    "        \"sp\": 4,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 1478831753\n",
    "    }, {\n",
    "        \"x\": 116.449639,\n",
    "        \"y\": 40.014776,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 23\n",
    "    },{\n",
    "        \"x\": 116.449859,\n",
    "        \"y\": 40.014716,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 111,\n",
    "        \"tm\": 33\n",
    "        \n",
    "    }, {\n",
    "        \"x\": 116.450074,\n",
    "        \"y\": 40.014658,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 31\n",
    "    }, {\n",
    "        \"x\": 116.450273,\n",
    "        \"y\": 40.014598,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 111,\n",
    "        \"tm\": 20\n",
    "    }]\n",
    "    response = requests.post(url,data=json.dumps(body))\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 160,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 160,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gj = grasproad('Key')\n",
    "gj"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# ML/AI思考\n",
    "\n",
    "## 地理/逆地理编码\n",
    "- 需要计算机保存处理相关数据\n",
    "- 使用ML数据库，便于下面代码调用\n",
    "## 路径规划\n",
    "- 推荐算法，路径规划在分析出原有数据的基础上，给出更优路线\n",
    "- 机器学习，分析出更优路径返回\n",
    "## 行政区域查询\n",
    "- 计算机算法帮助确定行政区域\n",
    "- 数据库存储行政区域信息\n",
    "## 搜索POI\n",
    "- 检索算法，把位置周边的数据提取出来\n",
    "- 计算机帮助定位，处理相关数据\n",
    "## IP定位\n",
    "- 基站检索\n",
    "- 计算机处理post的位置信息\n",
    "## 批量请求接口\n",
    "- 调用接口处理批量请求并返回\n",
    "## 静态地图\n",
    "- 计算机视觉，得到用户请求的区域地图\n",
    "- 检索算法，搜索到用户请求的区域信息\n",
    "## 坐标转换\n",
    "- 数值分析算法，得到用户请求的位置信息后进行转换\n",
    "## 天气查询\n",
    "- 搜索算法，根据用户给的信息返回其所在地区天气情况\n",
    "- 预测算法，根据近几日的天气分析推测出未来的天气情况\n",
    "- 数据仓库提取数据并给出返回\n",
    "## 输入提示\n",
    "- 推荐算法，根据用户给出的关键词进行预测推算\n",
    "- 检索算法，在用户检索的时候给出相关推测\n",
    "## 交通态势\n",
    "- 定位，通过用户给的信息得到精确位置信息\n",
    "- 检测车辆密度并进行分析判断\n",
    "- 计算机视觉，对用户所在区域的车流信息进行返回\n",
    "## 地理围栏\n",
    "- 计算机视觉，对用户给的地区进行规划处理\n",
    "## 轨迹纠偏\n",
    "- 计算机视觉，对用户给的方向信息与规划信息进行比较并返回\n",
    "- 预测，根据用户当前行驶路径并对接下来的行动作出预测"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设计应用 "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 应用概述\n",
    "*日常记录app*\n",
    "- 可以对用户拍摄的照片、到达的地点等重要的信息进行存储分析；\n",
    "- 在进行记录的时候可以对人物及地点进行分类记录，便于今后查看人物及地点信息；\n",
    "- 通过对用户记录的数据进行分析，得出用户的导致喜好--“常在一起的好朋友”，“喜欢逛的店”，“常光顾的餐厅”\n",
    "- 对用户未来的出行进行规划--推荐出行的地点或是符合心情及场合的穿搭。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##  API功能\n",
    "- 人脸检测：识别用户照片中的人脸，进行分析处理，分类放置在合适的标签中，可以得到心情、亲密度等反馈。\n",
    "- 计算机影像：识别用户在app中记录的地点等信息，并返回详尽的内容及预测。\n",
    "- 高德地图api-路径规划：对用户喜爱的店铺、餐馆等位置进行记录分析，在下次出行前进行合适的路线规划。\n",
    "- 高德地图api-天气查询：根据用户地点返回实时天气情况，并推荐合适穿搭；返回未来几日天气判断分析用户出行计划的可实施性。\n",
    "- 高德地图api-搜索poi：对用户所在地区进行分析，返回在当前位置符合用户需求的周边设施。\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "165px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
